I am new with zope and i am trying to foundout something i found in the
zope book on www.zope.org.

>From the zope book i found this piece of code to create an entry in a guest

      Create a guest book entry.
      # create a unique document id
      id='entry_%d' % len(context.objectIds())

      # create the document
                                               title="", file=comments)

      # add a guest_name string property
      doc=getattr(context, id)
      doc.manage_addProperty('guest_name', guest_name, 'string')

My questions are: what does OFSP means and how do I create the entry in
another folder eg. GuestBookEntries?
Please help me.

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to