[Zope] SVGmodule almost working in Zope, a little help is needed
Dieter Maurer
dieter@handshake.de
Mon, 8 Jul 2002 21:14:41 +0200
H.de.Wit@SFK.NL writes:
> The idea is that you program in a python script with the classes that are
> made available by the SVGdraw module.
> This should be possible by the allow_module and allow_class possibilties by
> making an extra folder in
> the Products folder and add an __init__.py as well as the module itself
> (SVGdraw.py)
>
> The content of the __init__.py is:
>
> from AccessControl import allow_module, allow_class, allow_type
> from AccessControl import ModuleSecurityInfo, ClassSecurityInfo
> from Globals import InitializeClass
> allow_module('SVGdraw')
For each of your classes add
from SVGdraw import my_class
allow_class(my_class)
Dieter