X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FNodeTags.py;h=e91124493ac9aed0c00293aa642bf7486b0650f1;hb=f1f66aa544638f31d63561a4a9e15eb45bd0c319;hp=22c77281c77ea5c5c3e36bf79266648f7ac41b6c;hpb=259f989816ec6cd9beb1c0549dc08aa78205cc20;p=plcapi.git diff --git a/PLC/NodeTags.py b/PLC/NodeTags.py index 22c7728..e911244 100644 --- a/PLC/NodeTags.py +++ b/PLC/NodeTags.py @@ -3,7 +3,7 @@ # from PLC.Faults import * from PLC.Parameter import Parameter -from PLC.Storage.AlchemyObj import AlchemyObj +from PLC.Storage.AlchemyObject import AlchemyObj from PLC.Nodes import Node, Nodes from PLC.TagTypes import TagType, TagTypes @@ -33,6 +33,7 @@ class NodeTag(AlchemyObj): AlchemyObj.update(self, {'node_tag_id': self['node_tag_id']}, dict(self)) def delete(self, commit=True): + assert 'node_tag_id' in self AlchemyObj.delete(self, dict(self)) class NodeTags(list):