[pytango] 179/483: fixes #3598514

Sandor Bodo-Merle sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:14:38 UTC 2017


This is an automated email from the git hooks/post-receive script.

sbodomerle-guest pushed a commit to annotated tag bliss_8.10
in repository pytango.

commit f466d18c93b4215c1193bad22bdaeb9497e17499
Author: tiagocoutinho <tiagocoutinho at 4e9c00fd-8f2e-0410-aa12-93ce3db5e235>
Date:   Wed Dec 26 12:13:29 2012 +0000

    fixes #3598514
    
    git-svn-id: http://svn.code.sf.net/p/tango-cs/code/bindings/PyTango/trunk@21774 4e9c00fd-8f2e-0410-aa12-93ce3db5e235
---
 PyTango/device_proxy.py | 5 ++---
 doc/revision.rst        | 1 +
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/PyTango/device_proxy.py b/PyTango/device_proxy.py
index 24db823..47e431c 100644
--- a/PyTango/device_proxy.py
+++ b/PyTango/device_proxy.py
@@ -122,13 +122,12 @@ def __DeviceProxy__setattr(self, name, value):
         if not hasattr(self, '__attr_cache') or name.lower() not in self.__attr_cache:
             self.__refresh_attr_cache()
     except:
-        self.__dict__[name] = value
-        return
+        return super(DeviceProxy, self).__setattr__(name, value)
         
     if name.lower() in self.__attr_cache:
         self.write_attribute(name, value)
     else:
-        self.__dict__[name] = value
+        return super(DeviceProxy, self).__setattr__(name, value)
 
 
 def __DeviceProxy__getAttributeNames(self):
diff --git a/doc/revision.rst b/doc/revision.rst
index 4e57970..0ca1b6d 100644
--- a/doc/revision.rst
+++ b/doc/revision.rst
@@ -85,6 +85,7 @@ Version history
 |            |         - `3576353: [pytango] segfault on 'RestartServer' <https://sourceforge.net/tracker/?func=detail&aid=3576353&group_id=57612&atid=484769>`_                            |
 |            |         - `3579062: [pytango] Attribute missing methods <https://sourceforge.net/tracker/?func=detail&aid=3579062&group_id=57612&atid=484769>`_                              |
 |            |         - `3586337: [pytango] Some DeviceClass methods are not python safe <https://sourceforge.net/tracker/?func=detail&aid=3586337&group_id=57612&atid=484769>`_           |
+|            |         - `3598514: DeviceProxy.__setattr__ break python's descriptors <https://sourceforge.net/tracker/?func=detail&aid=3598514&group_id=57612&atid=484769>`_               |
 +------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
 | 8.0.2      | Bug fixes:                                                                                                                                                                   |
 |            |     - from sourceforge:                                                                                                                                                      |

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git



More information about the debian-science-commits mailing list