Lennart Regebro wrote:
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.
...appart from the lame-ass allow by default security policy it drags
in along
If I want a class to appear in the ZODB, is that just a matter of
subclassing SimpleItem?
What additional attributes do I need to set -- for instance, do I need
to define 'meta_type' for the class?
Can a class be persistent but not have its instances appear in the
ZODB -- for instance, does
On 3/8/06, George Lee [EMAIL PROTECTED] wrote:
If I want a class to appear in the ZODB, is that just a matter of
subclassing SimpleItem?
Define Appear? :-)
Do you mean that you want it to pop up in the Add menu of the ZMI?
--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content
Instances show up in the list of objects in a container (which may be
equivalent to the class showing up in the Add menu?)
Peace,
George
On 3/8/06, Lennart Regebro [EMAIL PROTECTED] wrote:
On 3/8/06, George Lee [EMAIL PROTECTED] wrote:
If I want a class to appear in the ZODB, is that just a
George Lee wrote at 2006-3-8 10:17 -0500:
If I want a class to appear in the ZODB, is that just a matter of
subclassing SimpleItem?
Usually, classes do not appear in the ZODB -- just their instances.
SimpleItem is the base class of all (what I call) Zope site building
objects -- the term Zope