WebDAV MKCOL (was: [Zope-CMF] UnpickleableError)

Tres Seaver tseaver@palladion.com
Fri, 25 May 2001 10:24:26 -0400 (EDT)


On Fri, 25 May 2001, seb bacon wrote:

> Well, I did it anyway.  Patch attached if anyone's interested.

Your patch makes the roles for MKCOL be ('Anonymous',) -- is this
intended?  At any rate, this is "core Zope" stuff;  you should probably
submit the patch to the Collector:

  http://classic.zope.org:8080/Collector
 
> seb (your friendly friday bulk poster)
> 
> * seb bacon <seb@jamkit.com> [010525 12:46]:
> > Thanks to everyone for the hints, you were all right.  Specifically, I
> > was changing the File's title in manage_afterAdd like this:
> > self.title=self.id; a schoolboy error :-)  I can't believe it took a
> > whole day to track down...
> > 
> > Now I'm working on the fact that MKCOL doesn't work.  
> > 
> > Firstly, there's no provision in NullResource for MKCOL to create
> > anything other than an OFS.Folder.  Since there's no way of
> > differentiating between different *types* of folder, I figured a MKCOL
> > factory wouldn't be of much use.  Instead, would it be a sensible
> > policy always to create collection of the same type as the enclosing
> > collection? 
> > 
> > Furthermore, because the current implementation assumes you're adding
> > folders, it also assumes you need the 'Add Folder' permission, so the
> > _verifyObjectPaste hack used in the NullResource PUT methods needs to
> > be used too.
> > 
> > Would this be a reasonable approach?
> > 
> > seb
> 

-- 
===============================================================
Tres Seaver                               tseaver@palladion.com