[Zope-dev] a better propertyLabel as standard?

Lennart Regebro lennart@regebro.nu
Tue, 27 May 2003 14:14:14 +0200


Richard Jones wrote:

 > -----BEGIN PGP SIGNED MESSAGE-----
 > Hash: SHA1
 >
 > On Thursday, May 22, 2003, at 11:20 PM, Lennart Regebro wrote:
 >
 >> What about replacing the default propertyLabel of PropertyManager 
with the one from CMF:
 >>
 >>     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
 >
 >
 >
 > +1
 >
 >

Overwhelming response indeed. At least nobody complained, so I'll do it. 
I think it's a new feature, so I'll only put it in HEAD.