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

2006-03-09 Thread Chris Withers
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

[Zope-CMF] Classes whose instances appear in ZODB

2006-03-08 Thread George Lee
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

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

2006-03-08 Thread Lennart Regebro
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

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

2006-03-08 Thread George Lee
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

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

2006-03-08 Thread Dieter Maurer
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