[CPS-devel] Developer documentation

Florent Guillaume fg at nuxeo.com
Tue Jan 3 12:18:46 CET 2006


Hi,

On 2 Jan 2006, at 14:06, Edouard Mercier wrote:
> I'm a newbye under CPS (formerly a Plone developer, odd-job  
> development), and
> I'm looking for a very precise documentation about CPSSchemas, like  
> the one
> that can be found for Archetypes/ATContentTypes.
>
> For instance, I want to fetch the content of some images from my  
> file system. I
> have created a new content type via TypeMaker (very great and  
> powerfull tool
> indeed). However, when attempting to change the storage access, I  
> discovered
> that this seems to be hard-coded under the 'getDataModel()' method  
> of the
> 'FlexibleTypeInformation' class: either you have a non-metadata  
> field and in
> that case the storage adapter used is automatically an
> 'AttributeStorageAdapter', or this is a metadata field, and in that  
> case, the
> 'MetaDataStorageAdapter' is used.

It seems you've already found the code responsible. We never had a  
use case to change this, so it's still hardcoded for now. We'll  
welcome improvements in that area.

> I like the way the 'BaseStorageAdapter' kind-of-interface is  
> proposed, but can't
> find a tutorial that would explain how to write my own adapter, and  
> how the
> CPSSchemas machinery works...

There is documentation in the doc/ subdirectories of the various  
products. There is also documentation on http://www.cps-project.org/ 
sections/documentation/developers . Maybe not at this low a level  
though.

As a last resort, the code is always there of course :)

Hope this helps,

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com




More information about the cps-devel mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.