[Zope] Problems when I call DateTime()

Marco Bizzarri m.bizzarri at icube.it
Tue Mar 22 08:17:34 EST 2005


Perhaps you should:

import DateTime

e = DateTime.DateTime("US/Eastern")

Regards
Marco

libsvm wrote:
> Dear all,
> 
> I try to run such a very simple python script in Zope:
> 
>         import DateTime
>         e=DateTime("US/Eastern")
>         print e
>         return printed
> 
> BUT it raise such Errers: 
>         Site Error
>         An error was encountered while publishing this resource. 
>         
>         Error Type: TypeError
>         Error Value: 'module' object is not callable
> 
> Can someone help me? 
> 
> Denny
> 
> 
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )



More information about the Zope mailing list