10 Aug
2006
10 Aug
'06
11:42 a.m.
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