+# $Id#
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
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