Re: [Zope] webdav upload - controlling type, hook

2008-10-11 Thread Jakob Schou Jensen
Thanks Tres, The PUT_factory works fine for controlling the upload type. In addition to this I need a hook that gets called whenever a document is created OR updated (the put_factory is only called on creation). I need this hook to update some derived/cached data. Is there any way to do this?

[Zope] webdav upload - controlling type, hook

2008-09-25 Thread Jakob Schou Jensen
When uploading a file to the zope db using the webdav interface zope select on object type based on the file contents (or extension?). For instance when I upload a html file it becomes a DTML document. Is there any way to control what type of object is selected? Additionally I would like to

Re: [Zope] webdav upload - controlling type, hook

2008-09-25 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jakob Schou Jensen wrote: When uploading a file to the zope db using the webdav interface zope select on object type based on the file contents (or extension?). For instance when I upload a html file it becomes a DTML document. Is there any way to