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
libsvm wrote:
import DateTime
the above should be: from DateTime import DateTime cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
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@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 )
participants (3)
-
Chris Withers -
libsvm -
Marco Bizzarri