[Zope-Checkins] CVS: Zope/lib/python/OFS - PropertyManager.py:1.54
Lennart Regebro
cvs-admin at zope.org
Tue Nov 4 10:28:38 EST 2003
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv1123/lib/python/OFS
Modified Files:
PropertyManager.py
Log Message:
Added pretty label support for properties.
=== Zope/lib/python/OFS/PropertyManager.py 1.53 => 1.54 ===
--- Zope/lib/python/OFS/PropertyManager.py:1.53 Tue Oct 21 11:15:54 2003
+++ Zope/lib/python/OFS/PropertyManager.py Tue Nov 4 10:28:37 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