[Zope3-dev] Calling persistent function

Jim Fulton jim at zope.com
Mon Jan 26 10:58:51 EST 2004


Stephan Richter wrote:
> On Saturday 24 January 2004 09:30, Steve Alexander wrote:
> ...

> However, it does not, since the time module has not been declared safe by the 
> restricted Python interpreter. I did a quick read through the security code 
> and I *think* doing ZCML like
> 
> <class name="time">
>   <allow attributes="asctime ..." />
> </class>
> 
> should make this work.

You should use the module directive instead.

BTW, I'm surprised you didn't say we should the localized-date
api.

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org




More information about the Zope3-dev mailing list