Commit 0bbdea3a authored by Nicolas Delaby's avatar Nicolas Delaby

This patch is related to http://svn.erp5.org?rev=30412&view=rev

__name__ should be define on Accessor in order to be able to wrap
PreferenceMethod with UnrestrictedMethod.
Rewied by Romain


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32563 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d1d3efbf
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# Copyright (c) 2005 Nexedi SARL and Contributors. All Rights Reserved. # Copyright (c) 2005 Nexedi SARL and Contributors. All Rights Reserved.
...@@ -110,7 +111,7 @@ class PreferenceMethod(Method): ...@@ -110,7 +111,7 @@ class PreferenceMethod(Method):
func_defaults = () func_defaults = ()
def __init__(self, attribute, default): def __init__(self, attribute, default):
self._preference_getter = attribute self.__name__ = self._preference_getter = attribute
self._preference_default = default self._preference_default = default
self._preference_cache_id = 'PreferenceTool.CachingMethod.%s' % attribute self._preference_cache_id = 'PreferenceTool.CachingMethod.%s' % attribute
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment