match 'call' signature exactly
[plcapi.git] / PLC / Methods / UpdateNodeNetwork.py
index 3ba6940..83536c4 100644 (file)
@@ -1,4 +1,4 @@
-
+# $Id: $
 from PLC.v42Legacy import patch
 from PLC.v42LegacyNodeNetworks import v42rename, v43rename
 from PLC.Methods.UpdateInterface import UpdateInterface
@@ -6,8 +6,8 @@ class UpdateNodeNetwork(UpdateInterface):
     """ Legacy version of UpdateInterface. """
     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 = UpdateInterface.call(self,auth,*newargs,**newkwds)
-        return patch(results,v43rename)
+    def call(self, auth, interface_id, interface_fields):
+       interface_id=patch(interface_id,v2rename)
+       interface_fields=patch(interface_fields,v2rename)
+       result=UpdateInterface.call(self,auth,interface_id,interface_fields)
+       return patch(result,v43rename)