[Zope] PUT_factory and File object?

Eric Fernandez egf05 at doc.ic.ac.uk
Thu Aug 10 07:42:21 EDT 2006


Hi,

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,
Eric


More information about the Zope mailing list