vendor/zasync/1.1

changeset 12:4ae6eac80508 1.1-nux

Made Properties tab in ZMI to work for async manager(tested with Zope 2.8.x)
author rspivak
date Fri, 20 Jan 2006 12:29:12 +0000
parents 109f234bcce3
children d6e9f2b64c54
files CHANGES manager.py
diffstat 2 files changed, 5 insertions(+), 12 deletions(-) [+]
line diff
     1.1 --- a/CHANGES
     1.2 +++ b/CHANGES
     1.3 @@ -6,7 +6,7 @@
     1.4  -
     1.5  Bug fixes:
     1.6  ~~~~~~~~~~
     1.7 --
     1.8 +- Made Properties tab in ZMI to work for async manager(tested with Zope 2.8.x)
     1.9  New internal features:
    1.10  ~~~~~~~~~~~~~~~~~~~~~~
    1.11  -
     2.1 --- a/manager.py
     2.2 +++ b/manager.py
     2.3 @@ -592,20 +592,13 @@
     2.4      security.declarePrivate('manage_changePropertyTypes')
     2.5  
     2.6      def manage_propertiesForm(self, REQUEST, *args, **kw):
     2.7 -        'An override that makes the schema fixed.'
     2.8 +        """ An override that makes the schema fixed.
     2.9 +        """
    2.10          my_kw = kw.copy()
    2.11          my_kw['property_extensible_schema__'] = 0
    2.12 -        return apply(PropertyManager.manage_propertiesForm,
    2.13 -                     (self, self, REQUEST,) + args, my_kw)
    2.14 +        form = PropertyManager.manage_propertiesForm.__of__(self)
    2.15 +        return form(self, REQUEST, *args, **my_kw)
    2.16  
    2.17 -    security.declarePublic('propertyLabel')
    2.18 -    def propertyLabel(self, id):
    2.19 -        """Return a label for the given property id
    2.20 -        """
    2.21 -        for p in self._properties:
    2.22 -            if p['id'] == id:
    2.23 -                return p.get('label', id)
    2.24 -        return id
    2.25      # <<< end copy from CMF
    2.26  
    2.27      security.declarePrivate('resolve')