[Zope] Base classes for a folderish portal type (CMF)

katrin katrin@beehive.de
Thu, 7 Jun 2001 21:49:43 +0200 (CEST)


Hi everyone,

I'm trying to create a ZClass as a base for a folderish portal type. Now
it seems I have a problem with the Base classes for my ZClass. When I try
to add my portal type as a user in the portal, I get the following error
message:

         Zope Error

         Zope has encountered an error while publishing this resource.

         Error Type: AttributeError
         Error Value: creation_date


Traceback (innermost last):
  File C:\KKirchner\Zope2.3.2b\lib\python\ZPublisher\Publish.py, line 223,
in publish_module
  File C:\KKirchner\Zope2.3.2b\lib\python\ZPublisher\Publish.py, line 187,
in publish
  File C:\KKirchner\Zope2.3.2b\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
    (Object: Traversable)
  File C:\KKirchner\Zope2.3.2b\lib\python\ZPublisher\Publish.py, line 171,
in publish
  File C:\KKirchner\Zope2.3.2b\lib\python\ZPublisher\mapply.py, line 160,
in mapply
    (Object: invokeFactory)
  File C:\KKirchner\Zope2.3.2b\lib\python\ZPublisher\Publish.py, line 112,
in call_object
    (Object: invokeFactory)
  File D:\Zope
Installationen\Zope_2.3.1_final\lib\python\Products\CMFCore\PortalFolder.py=
,
line 368, in invokeFactory
    (Object: Traversable)
  File D:\Zope
Installationen\Zope_2.3.1_final\lib\python\Products\CMFCore\TypesTool.py,
line 714, in constructContent
    (Object: Traversable)
  File D:\Zope
Installationen\Zope_2.3.1_final\lib\python\Products\CMFCore\TypesTool.py,
line 473, in constructInstance
    (Object: ElementWithAttributes)
  File C:\KKirchner\Zope2.3.2b\lib\python\Shared\DC\Scripts\Bindings.py,
line 324, in __call__
    (Object: addTermPaper.py)
  File C:\KKirchner\Zope2.3.2b\lib\python\Shared\DC\Scripts\Bindings.py,
line 354, in _bindAndExec
    (Object: addTermPaper.py)
  File
C:\KKirchner\Zope2.3.2b\lib\python\Products\PythonScripts\PythonScript.py,
line 336, in _exec
    (Object: addTermPaper.py)
    (Info: ({'script': <PythonScript instance at 01404F40>, 'context':
<FactoryDispatcher instance at 01584330>, 'container': <FactoryDispatcher
instance at 01584330>, 'traverse_subpath': []}, ('sfdd',), {}, None))
  File Script (Python), line 2, in addTermPaper.py
  File C:\KKirchner\Zope2.3.2b\lib\python\ZClasses\ZClass.py, line 535, in
createInObjectManager
    (Object: TermPaperClass)
  File C:\KKirchner\Zope2.3.2b\lib\python\OFS\ObjectManager.py, line 305,
in _setObject
    (Object: Traversable)
  File D:\Zope
Installationen\Zope_2.3.1_final\lib\python\Products\CMFCore\PortalContent.p=
y,
line 155, in manage_afterAdd
    (Object: DynamicType)
  File D:\Zope
Installationen\Zope_2.3.1_final\lib\python\Products\CMFCore\PortalContent.p=
y,
line 138, in indexObject
    (Object: DynamicType)
  File D:\Zope
Installationen\Zope_2.3.1_final\lib\python\Products\CMFCore\CatalogTool.py,
line 225, in indexObject
    (Object: Traversable)
  File D:\Zope
Installationen\Zope_2.3.1_final\lib\python\Products\CMFCore\CatalogTool.py,
line 218, in catalog_object
    (Object: Traversable)
  File C:\KKirchner\Zope2.3.2b\lib\python\Products\ZCatalog\ZCatalog.py,
line 429, in catalog_object
    (Object: Traversable)
  File C:\KKirchner\Zope2.3.2b\lib\python\Products\ZCatalog\Catalog.py,
line 397, in catalogObject
  File C:\KKirchner\Zope2.3.2b\lib\python\Products\ZCatalog\Catalog.py,
line 504, in recordify
  File D:\Zope
Installationen\Zope_2.3.1_final\lib\python\Products\CMFDefault\DublinCore.p=
y,
line 268, in created
    (Object: DynamicType)
AttributeError: (see above)



The problem seems to be the DublinCore but one of my ZClasses base class
is the DefaultDublinCoreImpl.

Does anyone know which classes are necessary?=20

Thanks,
Katrin


---------------------------------------------------------
Katrin Kirchner
beehive elektronische medien GmbH
Fischerh=FCttenstr. 79 b
D-14163 Berlin
Tel.: 0 30 / 84 78 20