Skip to content

Commit

Permalink
Fix control panel's setter logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
malthe committed Nov 13, 2012
1 parent f992dee commit b556782
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/collective/multilingual/browser/controlpanel.py
Expand Up @@ -8,6 +8,7 @@

from zope import schema
from zope.interface import implements
from zope.interface import providedBy
from zope.component import getSiteManager
from zope.component import getUtility
from zope.lifecycleevent import modified
Expand Down Expand Up @@ -88,7 +89,10 @@ def __getattr__(self, name):
return getattr(self.proxy, name)

def __setattr__(self, name, value):
setattr(self.proxy, name, value)
if providedBy(self.proxy).get(name) is None:
object.__setattr__(self, name, value)
else:
setattr(self.proxy, name, value)


class ControlPanelEditForm(controlpanel.RegistryEditForm):
Expand Down

0 comments on commit b556782

Please sign in to comment.