[Zope-CMF] Re: Derived Content Types & WebDAV
tseaver at palladion.com
Wed Mar 28 12:45:30 EDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Dieter Maurer wrote:
> Charlie Clark wrote at 2007-3-27 13:28 +0200:
>> having made my own content type which is derived from Document with
>> three additional attributes, I've moved onto the exciting world of
>> editing content via webDAV. It seems some methods have to be extended/
>> overwritten for this to work so I have added customised versions of
>> the following
>> getMetadataHeaders() # Document.py
>> setMetadata() # Document.py
>> getMetadataHeaders() # DublinCore.py
>> _editMetaData() # DublinCore.py
>> Is this a correct assumption?
> I would be quite surprised if these methods had much to do
> with WebDAV editing. Instead, I would look for "PROPPATCH"
> (and how it is implemented).
The methods Charlie lays out are used to "crack" metadata from the body
of a content object (Document, NewsItem, Event) during a PUT. PROPPATCH
would indeed be the way to modify the values without re-uploading the body.
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v184.108.40.206 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Zope-CMF