match 'call' signature exactly
[plcapi.git] / PLC / Methods / DeleteSliceAttribute.py
index 733fe78..05386f3 100644 (file)
@@ -1,4 +1,4 @@
-
+# $Id: $
 from PLC.v42Legacy import patch
 from PLC.v42LegacySliceAttributes import v42rename, v43rename
 from PLC.Methods.DeleteSliceTag import DeleteSliceTag
@@ -6,8 +6,7 @@ class DeleteSliceAttribute(DeleteSliceTag):
     """ Legacy version of DeleteSliceTag. """
     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 = DeleteSliceTag.call(self,auth,*newargs,**newkwds)
-        return patch(results,v43rename)
+    def call(self, auth, slice_tag_id):
+       slice_tag_id=patch(slice_tag_id,v2rename)
+       result=DeleteSliceTag.call(self,auth,slice_tag_id)
+       return patch(result,v43rename)