This replaces the existing Legacy/* support with a new approach that
[plcapi.git] / PLC / Methods / UpdateSliceAttributeType.py
diff --git a/PLC/Methods/UpdateSliceAttributeType.py b/PLC/Methods/UpdateSliceAttributeType.py
new file mode 100644 (file)
index 0000000..21d6ac3
--- /dev/null
@@ -0,0 +1,12 @@
+
+from PLC.v42Legacy import patch
+from PLC.v42LegacyTypes import v42rename, v43rename
+from PLC.Methods.UpdateTagType import UpdateTagType
+class UpdateSliceAttributeType(UpdateTagType):
+    """ Legacy version of UpdateTagType. """
+    skip_typecheck = True
+    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)