caroline harper a écrit :
>
> I was wondering if there is any way to version an actual document -
> i.e. automatically put the Object ID and version number inside a Word
> document so that when it is printed it is possible to know which version
> it is?
>

It is possible to modify (from a server perspective) the "contents"
of CPS document when the button "Save Changes" is pressed.

Two examples :

In CPSTextWidget in
http://svn.nuxeo.org/trac/pub/browser/CPS3/products/CPSSchemas/trunk/ExtendedWidgets.py
there is the possibility to have the HTML content be sanitized and thus
modified when the document is saved. Look for the string
"self.xhtml_sanitize == 'system'" in the validate method.

In OOoDocbookDocument in
http://svn.nuxeo.org/trac/pub/browser/CPS3/products/CPSOOo/trunk/OOoDocbookDocument.py
there is the _updateDocumentFromMetadata method that does modify
the OpenOffice.org document with the CPS document metadata.
This is easy with OOo documents since they are just XML files bundled
in a ZIP archive. It would be easy to automatically add a version number
here.

As for Word documents, that should be possible too with the latest
XML version of the format, as long as you know how to interact with
this format. But Word documents have many flaws and are overcomplex,
why not use OpenOffice.org documents ?


Cheers,

-- 
Marc-Aurèle DARCHE
Open Source Enterprise Content Management (ECM)   http://www.nuxeo.org/
NUXEO (Paris, France)                             http://nuxeo.com/

_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to