X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FAddressTypes.py;h=34438716f8bf960649a2b9e21bd82f44d2dd2c70;hb=f1f66aa544638f31d63561a4a9e15eb45bd0c319;hp=3e41a92cf0e1acc56a3435219f109fe3a144ece2;hpb=259f989816ec6cd9beb1c0549dc08aa78205cc20;p=plcapi.git diff --git a/PLC/AddressTypes.py b/PLC/AddressTypes.py index 3e41a92..3443871 100644 --- a/PLC/AddressTypes.py +++ b/PLC/AddressTypes.py @@ -9,7 +9,7 @@ from types import StringTypes from PLC.Faults import * from PLC.Parameter import Parameter from PLC.Filter import Filter -from PLC.Storage.AlchemyObj import AlchemyObj +from PLC.Storage.AlchemyObject import AlchemyObj from PLC.Table import Row, Table class AddressType(AlchemyObj): @@ -48,6 +48,7 @@ class AddressType(AlchemyObj): def delete(self, commit=True): + assert 'address_type_id' in self AlchemyObj.delete(self, dict(self)) class AddressTypes(list):