[Zope-Checkins] CVS: Zope/lib/python/OFS -
PropertyManager.py:1.53.4.1
Lennart Regebro
cvs-admin at zope.org
Tue Nov 4 09:59:24 EST 2003
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv29048
Modified Files:
Tag: regebro-property_title-branch
PropertyManager.py
Log Message:
Properties now have a label.
=== Zope/lib/python/OFS/PropertyManager.py 1.53 => 1.53.4.1 ===
--- Zope/lib/python/OFS/PropertyManager.py:1.53 Tue Oct 21 11:15:54 2003
+++ Zope/lib/python/OFS/PropertyManager.py Tue Nov 4 09:59:23 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