Re: [Zope] webdav upload - controlling type, hook
-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 control > what type of object is selected? > > Additionally I would like to execute some script code after a webdav upload. > Is there any way to get a hook or callback or something similar? You need to implement the 'PUT_factory' hook for your container: http://wiki.zope.org/zope2/PUTFactory Tres. - -- === Tres Seaver +1 540-429-0999 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI2+lV+gerLs4ltQ4RAkEAAJ9vdWXskaVEB4IJAjFnxJc9HQ7K8ACgiCBy 7oWAtfQCkvyVKHfQ3B6NQzA= =uAf+ -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] webdav upload - controlling type, hook
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 execute some script code after a webdav upload. Is there any way to get a hook or callback or something similar? Thanks, Jakob ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )