r13360 - in archetypes.schemaextender/branches/plip10778-plone.uuid: . archetypes/schemaextender
"Jean-Michel FRANCOIS" <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.archetypes.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: toutpt
Date: Fri Dec 17 09:48:34 2010
New Revision: 13360
Modified:
archetypes.schemaextender/branches/plip10778-plone.uuid/archetypes/schemaextender/extender.py
archetypes.schemaextender/branches/plip10778-plone.uuid/setup.py
Log:
implement plip10778-plone.uuid IUUID pattern in archetypes.schemaextender
Modified: archetypes.schemaextender/branches/plip10778-plone.uuid/archetypes/schemaextender/extender.py
==============================================================================
--- archetypes.schemaextender/branches/plip10778-plone.uuid/archetypes/schemaextender/extender.py (original)
+++ archetypes.schemaextender/branches/plip10778-plone.uuid/archetypes/schemaextender/extender.py Fri Dec 17 09:48:34 2010
@@ -124,7 +124,7 @@
# If the object is just being created, we use its id() as a
# fallback. Generally the id() is not stable, as it changes
# with Acquisition wrappers and ZODB ghosting
- key = context.UID() or str(id(context))
+ key = IUUID(context, str(id(context)))
schema = cache.get(key, None)
if schema is None:
schema = cache[key] = instanceSchemaFactory(context)
Modified: archetypes.schemaextender/branches/plip10778-plone.uuid/setup.py
==============================================================================
--- archetypes.schemaextender/branches/plip10778-plone.uuid/setup.py (original)
+++ archetypes.schemaextender/branches/plip10778-plone.uuid/setup.py Fri Dec 17 09:48:34 2010
@@ -23,6 +23,7 @@
zip_safe=False,
install_requires=[
'setuptools',
+ 'plone.uuid'
],
entry_points="""
[z3c.autoinclude.plugin]
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d