[Zope] define a class in a python script

Andreas Jung lists at zopyx.com
Wed Mar 5 04:59:31 EST 2008



--On 5. März 2008 10:21:32 +0100 Yuri <yurj at alfa.it> wrote:

> Hi, all!
>
>  I would like to define a class inside a python script (so I can catalog
> it and use catalog to store info, as the tutorial about catalog
> everything suggests).
>
>

This is basically bad-style. Define your class somewhere in your product 
code and if necessary make it available through related APIs of the 
AccessControl module.

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20080305/bb7466de/attachment.bin


More information about the Zope mailing list