Nuxeo mailing list archives
[Nuxeo-tickets] Re: [Nuxeo Repository] #1779: Proposal for improve
the mapping emulation in CPS Proxies
Nuxeo Repository
trac at nuxeo.com
Tue Nov 7 23:29:21 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 | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by fguillaume):
Calling proxy.getContent().getDataModel() is quite costly, so we'd rather
not introduce a helper method that would actually hide things and give the
false impression that your proxy.has_key(foo) (or get) is a cheap
operation.
If you call it constantly, it's better to do
dm = proxy.getContent().getDataModel()
and then use that.
--
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.