diff options
author | Simon Schampijer <simon@schampijer.de> | 2008-08-08 16:38:32 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2008-09-11 09:29:44 (GMT) |
commit | f818f33f2fac7c8b5e10f3626240e292eb72ff4f (patch) | |
tree | 676a844dbcad7af590f8c2e71712f18d6de4187a | |
parent | 3291e299dc1f958cfa517f3888a2ab0e0bc1ad80 (diff) |
cp: Remove the extra check for setters and getters
this allows 7480 to use another name for the function
-rw-r--r-- | src/controlpanel/gui.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/controlpanel/gui.py b/src/controlpanel/gui.py index 4f56884..413c39a 100644 --- a/src/controlpanel/gui.py +++ b/src/controlpanel/gui.py @@ -335,9 +335,7 @@ class ModelWrapper(object): self._options[method[4:]] = None def __getattr__(self, name): - if name.startswith('get_') or name.startswith('set_') or \ - name.startswith('read_'): - return getattr(self._module, name) + return getattr(self._module, name) def undo(self): for key in self._options.keys(): |