[ZPT] Default POST type

Martijn Pieters mj@digicool.com
Thu, 29 Mar 2001 19:42:39 +0200


On Thu, Mar 29, 2001 at 12:23:07PM -0500, Guido van Rossum wrote:
> > 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.

No, there isn't yet. There is talk of such a beast for the CMF though.

-- 
Martijn Pieters
| Software Engineer  mailto:mj@digicool.com
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
---------------------------------------------