RE: [Zope] Can not add Zope Tutorial with 2.2
in preparation for the LinuxTag 2000 i tried to add the Zope Tutorial to Zope 2.2.0b2 (and fresh CVS versions of the last three days) but i get the following error (i think it's the same error as Oleg mentioned):
Error Type: TypeError Error Value: ('len() of unsized object', <class Shared.DC.ZRDB.DA.SQL at 85fb7e0>, None)
Jochen, Did you try to _import_ the tutorial or add it from the "add list" in the management interface? It is intended that you should add it from the add list (this should be better documented though...) Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com
On Sun, Jun 25, 2000 at 10:15:21AM -0400, Brian Lloyd wrote:
in preparation for the LinuxTag 2000 i tried to add the Zope Tutorial to Zope 2.2.0b2 (and fresh CVS versions of the last three days) but i get the following error (i think it's the same error as Oleg mentioned):
Error Type: TypeError Error Value: ('len() of unsized object', <class Shared.DC.ZRDB.DA.SQL at 85fb7e0>, None)
Jochen,
Did you try to _import_ the tutorial or add it from the "add list" in the management interface? It is intended that you should add it from the add list (this should be better documented though...)
Adding does nothing but create a Folder and do the import for you there. This is a bug, I can reproduce it by either: 1. - Add -> Zope Tutorial - fill in ID - Add 2. - Create a Folder - enter Folder - Import/Export - fill 'ZopeTutorialExamples.zexp' in 'Import file name' field. - Leave the Ownership setting, although it doesn't make any difference. - Import All this on: Zope version: Zope 2.2.0b2 (binary release, python 1.5.2, linux2-x86) Python version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3] System Platform: linux2 clean out of the box, but after creating a Manager Role user, and reauthenticated. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server ---------------------------------------------
Hi Martijn, Brian, Martijn Pieters wrote:
On Sun, Jun 25, 2000 at 10:15:21AM -0400, Brian Lloyd wrote:
in preparation for the LinuxTag 2000 i tried to add the Zope Tutorial to Zope 2.2.0b2 (and fresh CVS versions of the last three days) but i get the following error (i think it's the same error as Oleg mentioned):
Error Type: TypeError Error Value: ('len() of unsized object', <class Shared.DC.ZRDB.DA.SQL at 85fb7e0>, None)
Jochen,
Did you try to _import_ the tutorial or add it from the "add list" in the management interface?
[...]
Adding does nothing but create a Folder and do the import for you there. This is a bug, I can reproduce it by either:
1. - Add -> Zope Tutorial - fill in ID - Add
This way i produced the error with the traceback.
2. - Create a Folder - enter Folder - Import/Export - fill 'ZopeTutorialExamples.zexp' in 'Import file name' field. - Leave the Ownership setting, although it doesn't make any difference. - Import
I tried this and it produces the same error.
All this on:
Zope version: Zope 2.2.0b2 (binary release, python 1.5.2, linux2-x86) Python version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3] System Platform: linux2 clean out of the box, but after creating a Manager Role user, and reauthenticated.
and on: Zope version: (unreleased version) Python version: 1.5.2 (#2, Jun 23 2000, 00:00:07) [GCC 2.95.2 19991024 (release)] System Platform: freebsd4 Ciao, Jochen
Hi Brian, Jochen Knuth wrote:
in preparation for the LinuxTag 2000 i tried to add the Zope Tutorial to Zope 2.2.0b2 (and fresh CVS versions of the last three days) but i get the following error (i think it's the same error as Oleg mentioned):
Error Type: TypeError Error Value: ('len() of unsized object', <class Shared.DC.ZRDB.DA.SQL at 85fb7e0>, None)
the last updates for DA.py and/or TutorialTopic.py have solved the problem for me. One "aesthetic" problem i see now: The order of the Tutorial lessons in the "menu" frame is wrong. Zope Tutorial Glossary Welcome to the Zope Tutorial Lesson 9. Elvis, Up Close and Personal Lesson 10. So You've Seen Elvis Lesson 11. The Elvis Files Congratulations Lesson 1. "Elvis Lives" Home Page Lesson 2. Going to Graceland Lesson 3. Elvis's Favorite Foods Lesson 4. Site Contact Information Lesson 5. Recent Elvis Sightings Lesson 6. Recent Elvis Sightings, cont. Lesson 7. Elvis Photo Archive Lesson 8. Elvis Photo Archive, cont. Ciao, Jochen
On Sun, 25 Jun 2000, Brian Lloyd wrote:
Did you try to _import_ the tutorial or add it from the "add list" in the management interface? It is intended that you should add it from the add list (this should be better documented though...)
Both variants didn't work for me - both gave "len() of unsized object"! Oleg. (All opinions are mine and not of my employer) ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
participants (4)
-
Brian Lloyd -
Jochen Knuth -
Martijn Pieters -
Oleg Broytmann