[Nuxeo-tickets] [Nuxeo Repository] #1779: Proposal for improve the mapping emulation in CPS Proxies

Nuxeo Repository trac at nuxeo.com
Tue Nov 7 19:24:51 CET 2006


#1779: Proposal for improve the mapping emulation in CPS Proxies
-------------------------+--------------------------------------------------
 Reporter:  scamps       |       Owner:  fguillaume
     Type:  enhancement  |      Status:  new       
 Priority:  P2           |   Milestone:            
Component:  CPSCore      |     Version:  TRUNK     
 Severity:  normal       |    Keywords:            
-------------------------+--------------------------------------------------
 Working with CPS Proxies from python code, I found myself continously
 writting proxy.getContent().getDataModel().has_key('key') or
 proxy.getContent().getDataModel().get('key', 'def').    I think with some
 little improvements, it could be possible to have this features directly
 in the proxy, being possible to write proxy.has_key('key') or
 proxy.get('key','def').

 I attach a patch to implement this in CPS 3 trunk.   I'm missing something
 ?  What do you think about this ?

-- 
Ticket URL: <http://svn.nuxeo.org/trac/pub/ticket/1779>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository



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