[ZDP] BackTalk to Document Zope Developer's Guide (2.4
edition)/Zope Products
webmaster at zope.org
webmaster at zope.org
Sun Nov 23 21:23:57 EST 2003
A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZDG/current/Products.stx#4-30
---------------
'Item' requires that your class and instances have some
management interface related attributes.
'meta_type' -- This attribute should be a short string which
is the name of your product class as it appears in the product
add list. For example the poll product class could have a
'meta_type' of 'Poll'.
'id' or '__name__' -- All 'Item' instances must have an 'id'
string attribute which uniquely identifies the instance within
it's container. As an alternative you may use '__name__'
instead of 'id'.
'title' -- All 'Item' instances must have a 'title' string
attribute. A title may be an empty string if your instance
does not have a title.
% Anonymous User - Nov. 23, 2003 9:23 pm:
If you use __name__ instead of id, you need to mix in the Item_w__name__ class from OFS.SimpleItem
More information about the ZDP
mailing list