r13365 - in archetypes.kss/trunk: . archetypes/kss docs

"David Glick" <[email protected]>
Newsgroups gmane.comp.web.zope.plone.archetypes.cvs
Message-ID <[email protected]>
Author: davisagli
Date: Mon Dec 20 00:30:08 2010
New Revision: 13365

Modified:
   archetypes.kss/trunk/   (props changed)
   archetypes.kss/trunk/archetypes/kss/fields.py
   archetypes.kss/trunk/docs/HISTORY.txt
   archetypes.kss/trunk/setup.py
Log:
merge PLIP 10778 branch

Modified: archetypes.kss/trunk/archetypes/kss/fields.py
==============================================================================
--- archetypes.kss/trunk/archetypes/kss/fields.py	(original)
+++ archetypes.kss/trunk/archetypes/kss/fields.py	Mon Dec 20 00:30:08 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/trunk/docs/HISTORY.txt
==============================================================================
--- archetypes.kss/trunk/docs/HISTORY.txt	(original)
+++ archetypes.kss/trunk/docs/HISTORY.txt	Mon Dec 20 00:30:08 2010
@@ -1,9 +1,12 @@
 Changelog
 =========
 
-1.6.1 (Unreleased)
+1.7.0 (Unreleased)
 ------------------
 
+- Use plone.uuid to look up content UUIDs.
+  [toutpt, davisagli]
+
 1.6.0 (2010-07-31)
 ------------------
 

Modified: archetypes.kss/trunk/setup.py
==============================================================================
--- archetypes.kss/trunk/setup.py	(original)
+++ archetypes.kss/trunk/setup.py	Mon Dec 20 00:30:08 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.