[Zope-CMF] question

Tres Seaver tseaver@zope.com
Wed, 27 Feb 2002 08:39:38 -0500


Vladimir Iliev wrote:

> is creation of folderish portal content (different from Portal Folder)
> possible via webdav/ftp ?
> 
> Thanks for your help

Not using MKCOL;  PortalFolder's handler for MKCOL (or MKDIR, in
FTP) creates another object of the same 'portal_type' as its
container.  You could derive a new class from PortalFolder which
implemented 'MKCOL' differently, perhaps using the
'content_type_registry' (as in the next paragraph).

You *could* fake it by arranging to have the 'content_type_registry'
construct your type when handling a PUT of a given name.  E.g.,
if the CTR has a rule which maps names which match "*.bundle" to
a SkinnedFolder-derived type, 'Bundle', then you could create a
Bundle object by doing "put /dev/null foo.bundle".

Tres.--
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com