r13358 - in archetypes.kss/branches/plip10778-plone.uuid: . archetypes/kss

"Jean-Michel FRANCOIS" <[email protected]>
Newsgroups gmane.comp.web.zope.plone.archetypes.cvs
Message-ID <[email protected]>
Author: toutpt
Date: Fri Dec 17 09:40:00 2010
New Revision: 13358

Modified:
   archetypes.kss/branches/plip10778-plone.uuid/archetypes/kss/fields.py
   archetypes.kss/branches/plip10778-plone.uuid/setup.py
Log:
implements plip10778-plone.uuid IUUID pattern in archetypes.kss

Modified: archetypes.kss/branches/plip10778-plone.uuid/archetypes/kss/fields.py
==============================================================================
--- archetypes.kss/branches/plip10778-plone.uuid/archetypes/kss/fields.py	(original)
+++ archetypes.kss/branches/plip10778-plone.uuid/archetypes/kss/fields.py	Fri Dec 17 09:40:00 2010
@@ -44,6 +44,7 @@
 
 import events
 from utils import get_econtext
+from plone.uuid.interfaces import IUUID
 
 missing_uid_deprecation = \
 "This view does not provide a KSS instance UID as required. Falling back to "
@@ -313,7 +314,7 @@
         """
         This method generates a class-name from the current context UID.
         """
-        uid = aq_inner(self.context).UID()
+        uid = IUUID(aq_inner(self.context))
         
         return "kssattr-atuid-%s" % uid
 

Modified: archetypes.kss/branches/plip10778-plone.uuid/setup.py
==============================================================================
--- archetypes.kss/branches/plip10778-plone.uuid/setup.py	(original)
+++ archetypes.kss/branches/plip10778-plone.uuid/setup.py	Fri Dec 17 09:40:00 2010
@@ -24,5 +24,6 @@
       zip_safe=False,
       install_requires=[
         'setuptools',
+        'plone.uuid'
       ],
       )

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.