[Zope] Baseclass:Folder or ObjectManager

2000-09-27 Thread brocken22

Hallo,
my ZClass has as base-class Objectmanager and not Folder.
When I try to add(let's call it PastaClass)programmatically PastaClass to
an instance of Pastaclass I get a mistake.Adding it with the
management-interface everythings o.k.Why??
Do I have to subclass folder??
Thanks. 

-- 
Sent through GMX FreeMail - http://www.gmx.net


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Baseclass:Folder or ObjectManager

2000-09-27 Thread brocken22

This is the traceback I get:
When I add the zclass to a normal folder(even with the script)everything
is fine.??

Error Type: AttributeError
Error Value: seek

Traceback (innermost last):
  File C:\Zop\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File C:\Zop\lib\python\ZPublisher\Publish.py, line 187, in publish
  File C:\Zop\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File C:\Zop\lib\python\ZPublisher\Publish.py, line 171, in publish
  File C:\Zop\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: klassenbauer)
  File C:\Zop\lib\python\ZPublisher\Publish.py, line 112, in call_object
(Object: klassenbauer)
  File C:\Zop\lib\python\OFS\DTMLMethod.py, line 167, in __call__
(Object: klassenbauer)
  File C:\Zop\lib\python\DocumentTemplate\DT_String.py, line 502, in
__call__
(Object: klassenbauer)
  File C:\Zop\lib\python\DocumentTemplate\DT_With.py, line 146, in render
(Object: So)
  File C:\Zop\lib\python\DocumentTemplate\DT_With.py, line 146, in render
(Object: manage_addProduct['LWL'])
  File C:\Zop\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval
(Object: LwlSeite_add(_.None, _, NoRedir=1))
(Info: _)
  File string, line 0, in ?
  File C:\Zop\lib\python\OFS\DTMLMethod.py, line 163, in __call__
(Object: LwlSeite_add)
  File C:\Zop\lib\python\DocumentTemplate\DT_String.py, line 502, in
__call__
(Object: LwlSeite_add)
  File C:\Zop\lib\python\DocumentTemplate\DT_With.py, line 146, in render
(Object: LwlSeite.createInObjectManager(REQUEST['id'], REQUEST))
  File C:\Zop\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval
(Object: manage_addImage('grafik',grafik))
(Info: grafik)
  File string, line 0, in ?
  File C:\Zop\lib\python\OFS\Image.py, line 338, in manage_addImage
(Object: CatalogAware)
  File C:\Zop\lib\python\OFS\Image.py, line 187, in manage_upload
(Object: grafik)
  File C:\Zop\lib\python\OFS\Image.py, line 220, in _read_data
(Object: grafik)
AttributeError: (see above)

-- 
Sent through GMX FreeMail - http://www.gmx.net


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )