[Zope-Checkins] CVS: Zope/lib/python/OFS - PropertyManager.py:1.52.2.2

Lennart Regebro cvs-admin at zope.org
Tue Nov 4 10:42:28 EST 2003


Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv3515

Modified Files:
      Tag: Zope-2_7-branch
	PropertyManager.py 
Log Message:
The standard ProperyManager now includes the same label functionality as the CMF SimpleItemWithProperties object.



=== Zope/lib/python/OFS/PropertyManager.py 1.52.2.1 => 1.52.2.2 ===
--- Zope/lib/python/OFS/PropertyManager.py:1.52.2.1	Tue Oct 21 11:22:16 2003
+++ Zope/lib/python/OFS/PropertyManager.py	Tue Nov  4 10:42:27 2003
@@ -229,6 +229,9 @@
     def propertyLabel(self, id):
         """Return a label for the given property id
         """
+        for p in self._properties:
+            if p['id'] == id:
+                return p.get('label', id)
         return id
 
     def propdict(self):




More information about the Zope-Checkins mailing list