[ZPT] Using alternatives to Zope's DateTime module in PageTemplates

Dieter Maurer dieter at handshake.de
Mon Nov 6 17:12:53 EST 2006


Charlie Clark wrote at 2006-10-24 22:43 +0200:
>Am 24.10.2006, 22:26 Uhr, schrieb Dieter Maurer <dieter at handshake.de>:
>> It does, but you need to use "allowType"...
>
>Thanks for that.
>
>import datetime
>
>allow_type(datetime.datetime)
>
>do work but
>
>calling strftime() on a datetime object throws an import error
>
>Error Type: ImportError
>Error Value: import of "__doc__" from "time" is unauthorized. You are not  
>allowed to access '__doc__' in this context
>
>Is this correct?

You know that you must always (!) provide full error information.
This includes a traceback (beside "Error Type" and "Error Value".



-- 
Dieter


More information about the ZPT mailing list