[ZPT] Default POST type

Guido van Rossum guido@digicool.com
Thu, 29 Mar 2001 12:23:07 -0500


> FTP, WebDAV and Netscape Composer us PUT to create and edit files. The
> type of object that is created can be overridden using a special hook; it
> allows you even to create different objects based on the uploaded content.
> This has been implemented since 2.3.0a1:
> 
>   http://dev.zope.org/Wikis/DevSite/Proposals/HookablePUTCreation
> 
> The above proposal explains how it is implemented and what you need to do
> to get it to create a ZPT object for you.

Is there a default implementation that hooks on the extension and does
the sensible thing?  That would really help, especially if that
default implementation was easily configurable with a table that maps
extensions to object types.  The table should be editable in the
management interface; it should also be inheritable.

--Guido van Rossum (home page: http://www.python.org/~guido/)