Markus Koelle writes:
On 26 Feb 2002 at 20:51, Dieter Maurer wrote: I've tried ExtFile-1.1.3.patch and the example external method on http://dev.zope.org/Members/shh/Patches/ but it didn't work. FTP-Client shoes "426 Error creating files" alltough I'm a manager and have got all permissions.
Here my external method code:
def PUT_factory(self, name, typ, body): # Return DTMLDoc/Image/File, based on sniffing. print "Factory called" from Products.ExtFile.ExtFile import ExtFile from Products.ExtFile.ExtImage import ExtImage if typ[:6]=='image/': ob=ExtImage(name) else: ob=ExtFile(name) return ob
Any idea? I would expect that the "ExtImage" and "ExtFile" constructors want more than a single name attribute.
Dieter