I am trying to upload text files as File objects instead of DTML documents to avoid HTML escaping. What is the type of the File object in Zope ? The example in the Zope book are ZopePageTemplate and PythonScript objects,, but I just want a File object. This does not work:

def PUT_factory( self, name, typ, body ):
   if typ.startswith('text'):
       ob = File(name, body)
   return ob

Which is the correct syntax? Where can I find the list of available objects in Zope and their attributes?
Thank you,
Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to