Lets leave PL type checking enabled, as the type check on the 'auth'
[plcapi.git] / PLC / Methods / UpdateNodeNetworkSetting.py
index ca06130..46f463a 100644 (file)
@@ -1,12 +1,12 @@
-
+# $Id: $
 from PLC.v42Legacy import patch
 from PLC.v42LegacyNodeNetworkSettings import v42rename, v43rename
 from PLC.Methods.UpdateInterfaceTag import UpdateInterfaceTag
 class UpdateNodeNetworkSetting(UpdateInterfaceTag):
     """ Legacy version of UpdateInterfaceTag. """
-    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 = UpdateInterfaceTag.call(self,auth,*newargs,**newkwds)
-        return patch(results,v43rename)
+    status = "deprecated"
+    def call(self, auth, interface_tag_id, value):
+       interface_tag_id=patch(interface_tag_id,v42rename)
+       value=patch(value,v42rename)
+       result=UpdateInterfaceTag.call(self,auth,interface_tag_id,value)
+       return patch(result,v43rename)