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
book

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

      # create the document
      context.manage_addProduct['OFSP'].manage_addDTMLDocument(id,
                                               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]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to