svn keywords
[plcapi.git] / PLC / Methods / AddNetworkMethod.py
index e9bf31d..3932f34 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
+# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -20,12 +22,10 @@ class AddNetworkMethod(Method):
 
     returns = Parameter(int, '1 if successful')
 
-    event_type = 'Add'
-    object_type = 'NetworkMethod'
 
     def call(self, auth, name):
         network_method = NetworkMethod(self.api)
         network_method['method'] = name
-        network_method.sync()
+        network_method.sync(insert = True)
 
         return 1