[Zope-CMF] Re: Classes whose instances appear in ZODB

Tres Seaver tseaver at palladion.com
Wed Mar 8 12:50:00 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lennart Regebro wrote:
> On 3/8/06, George Lee <georgeleejr at gmail.com> wrote:
> 
>>Instances show up in the list of objects in a container (which may be
>>equivalent to the class showing up in the Add menu?)
> 
> 
> Nope, that's not equivalent. I'm not exactly sure what the
> requirements are. A getId method, a title attribute and a meta_type
> probably. Subclassing from SimpleItem is definitely a good idea.
> 
> Oh, and you need to add the object to the container, of course. ;)

Right, vie '_setObject', rather than just assigning an attribute.


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEDxlI+gerLs4ltQ4RAkwAAJ9tNHfbXXuWqsXgJEgpVgY7lhDDVgCgh/i+
otk6Lr0MG+wm0yTJgrMg+48=
=lKQ3
-----END PGP SIGNATURE-----



More information about the Zope-CMF mailing list