[Zope-DB] mxDateTime result

Dieter Maurer dieter@handshake.de
Fri, 1 Nov 2002 18:36:13 +0100

M.-A. Lemburg writes:
 > > You add two attributes to your objects:
 > > 
 > >     __allow_access_to_unprotected_subobjects__=1
 > > 
 > > and
 > > 
 > >     __roles__= None
 > > 
 > > These make the objects public.
 > If that's all, I'll make the needed changes in the next version.
That's what is needed to make "DateTime" instances created
in trusted code accessible in TTW code.

When you want to make imports of the "mx" packages and modules
possible in Python Scripts (or Page Templates), your
modules must contain similar variables.

The details are explained in the Zope Developper Guide, the "Security"

 > Thanks,
Thank you for your Python and Zope support!