[Zope] Newbie Question : Problems with Automatic Cataloging of ZClasses
Dianne Van Dulken
Dianne.VanDulken@team.ozemail.com.au
Wed, 27 Feb 2002 16:56:59 +1100
Hi all,
I am having a problem with cataloging of zClasses automatically, as defined
by Chapter 9 in the zope book, not actually cateloging anything but the url
and the date. I know this problem was asked about way back in November, and
Steffan gave the answer that we needed to add the following to the
constructor file of the class:
"<dtml-with "NewsItem.createInObjectManager(REQUEST['id'], REQUEST)"> (
this line should already be there )
<dtml-call "propertysheets.Input.manage_editProperties(REQUEST)">
<dtml-call unindex_object>
<dtml-call "manage_editCataloger('inputFilesCatalog', REQUEST)">
<dtml-call index_object>
'NewsItem' is the name of your class.
'Input' is the name of the property sheet that should be cataloged.
'inputFilesCatalog' is the name of the catalog that should be used.
"
I've done this, matching up the names to what I have them as, but now,
whenever I try to define anything I get the following error:
"
Traceback (innermost last):
File /home/Zope-2.5.0/lib/python/ZPublisher/Publish.py, line 150, in
publish_module
File /home/Zope-2.5.0/lib/python/ZPublisher/Publish.py, line 114, in
publish
File /home/Zope-2.5.0/lib/python/Zope/__init__.py, line 158, in
zpublisher_exception_hook
(Object: NewsItem_factory)
File /home/Zope-2.5.0/lib/python/ZPublisher/Publish.py, line 98, in
publish
File /home/Zope-2.5.0/lib/python/ZPublisher/mapply.py, line 88, in mapply
(Object: NewsItem_add)
File /home/Zope-2.5.0/lib/python/ZPublisher/Publish.py, line 39, in
call_object
(Object: NewsItem_add)
File /home/Zope-2.5.0/lib/python/OFS/DTMLMethod.py, line 127, in __call__
(Object: NewsItem_add)
File /home/Zope-2.5.0/lib/python/DocumentTemplate/DT_String.py, line 473,
in __call__
(Object: NewsItem_add)
File /home/Zope-2.5.0/lib/python/DocumentTemplate/DT_With.py, line 76, in
render
(Object: NewsItem.createInObjectManager(REQUEST['id'], REQUEST))
File /home/Zope-2.5.0/lib/python/DocumentTemplate/DT_Util.py, line 159, in
eval
(Object: propertysheets.news.manage_editProperties(REQUEST))
(Info: REQUEST)
File <string>, line 2, in f
File /home/Zope-2.5.0/lib/python/OFS/PropertySheets.py, line 396, in
manage_editProperties
File /home/Zope-2.5.0/lib/python/OFS/PropertySheets.py, line 215, in
_updateProperty
File /home/Zope-2.5.0/lib/python/ZPublisher/Converters.py, line 111, in
field2date
File /home/Zope-2.5.0/lib/python/DateTime/DateTime.py, line 625, in
__init__
Invalid Date-Time String: (see above)
"
Presumably something nasty has happened with my date, but I can't for the
life of me work out what it is. Any ideas would be greatfully accepted.
Di
(hoping that posting the big error isn't a bad newbie mistake)