[Zope-CMF] Re: Derived Content Types WebDAV

2007-03-28 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

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.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGCpuq+gerLs4ltQ4RAlHsAJ9Dy6nqW6UhZybFinGD4Gnr4/ix2ACeL1vw
jD0Fx/MS1+1uXOjIsHhgHO8=
=AXLZ
-END PGP SIGNATURE-

___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


Re: [Zope-CMF] Re: Derived Content Types WebDAV

2007-03-28 Thread Charlie Clark


Am 28.03.2007 um 18:45 schrieb Tres Seaver:


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.


I'm a bit confused! (Not for the first time!) The changes I've  
implemented are working for us: we're editing documents in the WebDAV  
file system using text/HTML editors. As it's not just the meta-data  
that may be changed I assume that we have to upload everything on  
saving. I am however, worried about the fact about possible encoding  
issues similar to what happens if you edit attributes such as  
description in the ZMI rather than in the CMF and use non-ascii get  
problems is this likely to happen here as well?


Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226



___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests