BackTalk to Document Zope Developer's Guide (2.4 edition)/Zope Products

[email protected]
Newsgroups gmane.comp.web.zope.zdp
Message-ID <[email protected]>
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

_______________________________________________
ZDP maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zdp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.