[Zope-CMF] DateTime attribute error in one CMF instance but not
another
Dieter Maurer
dieter at handshake.de
Thu Nov 27 18:53:56 EST 2003
Anton Hughes wrote at 2003-11-27 11:07 +1100:
> I've got a funny error with a filesystem python script calling DateTime.
> Here is the relevant part of the code (it's lifted from PloneChat, which I'm
> hacking to run on a CMFDefault portal):
>
> from DateTime import DateTime
>
> dt_date = DateTime(chat_date)
> ...
> new_context.manage_editLTPortalChat(moderation = moderation,
> chatDay = dt_date.year(),
> ...
> Module Script (Python), line 14, in LTPortalChat_edit
> Module DateTime.DateTime, line 1302, in year
> Module DateTime.DateTime, line 1056, in __getattr__
> AttributeError: _year
I cannot reproduce this problem.
--
Dieter
More information about the Zope-CMF
mailing list