[Zope] Time module in python scripts

Matthias Hörtzsch m_hoertzsch@yahoo.de
Thu, 6 Feb 2003 23:12:39 +0100


Am Donnerstag, 6. Februar 2003 22:49 schrieb Chris Muldrow:
> I'm trying to do
> Import time
> Time=time.time()

You could try something like

from DateTime import DateTime

Time=DateTime().Time()

have a look at the DateTime API docs for further information.

Matthias

> in a Python Script, but I'm getting login prompts and "Error Value: You=
 are
> not allowed to access time in this context" messages. Is the time modul=
e
> one that's restricted in Python Script?
> Chris
>
>
> _______________________________________________
> 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 )

__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Bis zu 100 MB Speicher bei http://premiummail.yahoo.de