match 'call' signature exactly
[plcapi.git] / PLC / Methods / UpdateSliceAttributeType.py
index 3b63cbd..43ad46b 100644 (file)
@@ -1,4 +1,4 @@
-
+# $Id: $
 from PLC.v42Legacy import patch
 from PLC.v42LegacyAttributeTypes import v42rename, v43rename
 from PLC.Methods.UpdateTagType import UpdateTagType
@@ -6,8 +6,8 @@ class UpdateSliceAttributeType(UpdateTagType):
     """ Legacy version of UpdateTagType. """
     skip_typecheck = True
     status = "deprecated"
-    def call(self, auth, *args, **kwds):
-        newargs=[patch(x,v42rename) for x in args]
-        newkwds=dict ( [ (k,patch(v,v42rename)) for (k,v) in kwds.iteritems() ] )
-        results = UpdateTagType.call(self,auth,*newargs,**newkwds)
-        return patch(results,v43rename)
+    def call(self, auth, tag_type_id_or_name, tag_type_fields):
+       tag_type_id_or_name=patch(tag_type_id_or_name,v2rename)
+       tag_type_fields=patch(tag_type_fields,v2rename)
+       result=UpdateTagType.call(self,auth,tag_type_id_or_name,tag_type_fields)
+       return patch(result,v43rename)