From 8dc9c57e9d685d0b3acb6720e1b9de44b89cf1e0 Mon Sep 17 00:00:00 2001 From: Alexander Zaft Date: Mon, 12 Jun 2023 16:16:06 +0200 Subject: [PATCH] entangle: fix tango guards for pytango 9.3 Change-Id: I666969f9c798971d5cd8a0c2f6564067ac3cde72 Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/31327 Tested-by: Jenkins Automated Tests Reviewed-by: Georg Brandl --- frappy_mlz/entangle.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/frappy_mlz/entangle.py b/frappy_mlz/entangle.py index 16783a7..8a417b7 100644 --- a/frappy_mlz/entangle.py +++ b/frappy_mlz/entangle.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # ***************************************************************************** # # This program is free software; you can redistribute it and/or modify it under @@ -257,12 +256,12 @@ class BasePyTangoDevice: Wraps command execution and attribute operations of the given device with logging and exception mapping. """ - dev.command_inout = self._applyGuardToFunc(dev.command_inout) - dev.write_attribute = self._applyGuardToFunc(dev.write_attribute, + dev.__dict__['command_inout'] = self._applyGuardToFunc(dev.command_inout) + dev.__dict__['write_attribute'] = self._applyGuardToFunc(dev.write_attribute, 'attr_write') - dev.read_attribute = self._applyGuardToFunc(dev.read_attribute, + dev.__dict__['read_attribute'] = self._applyGuardToFunc(dev.read_attribute, 'attr_read') - dev.attribute_query = self._applyGuardToFunc(dev.attribute_query, + dev.__dict__['attribute_query'] = self._applyGuardToFunc(dev.attribute_query, 'attr_query') return dev