[Zope-dev] why cant i import types
robert
robert at redcor.ch
Fri Aug 15 07:49:51 EDT 2003
For security reasons many of the standard libraries are not allowd to be used
in Zope. Types is one of them.
You can declare a library as save for use in a python script. How I can not
say without consulting the documentation.
Robert
Am Friday 15 August 2003 04:18 schrieb Declan Shanaghy:
> Can someone tell me why i cant import types into my python
> script in CMF?
> When i put either of the following lines as the first line
> of my script i get the error that follows
>
> from types import * - produces
> Error Type: ImportError
> Error Value: "from types import *" is not allowed
>
> from types import ListType - produces
> Error Type: ImportError
> Error Value: import of "ListType" from "types" is
> unauthorized. You are not allowed to access ListType in
> this context
>
>
> _______________________________________________
> Zope-Dev maillist - Zope-Dev at zope.org
> http://mail.zope.org/mailman/listinfo/zope-dev
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope )
--
mit freundlichen Grüssen
Robert Rottermann
www.redCOR.ch
More information about the Zope-Dev
mailing list