svn keywords
[plcapi.git] / PLC / Methods / AddBootState.py
index c8c916c..061edd4 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
+# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -20,13 +22,10 @@ class AddBootState(Method):
 
     returns = Parameter(int, '1 if successful')
 
-    event_type = 'Add'
-    object_type = 'BootState'
-    object_ids = []
     
     def call(self, auth, name):
         boot_state = BootState(self.api)
         boot_state['boot_state'] = name
-        boot_state.sync()
+        boot_state.sync(insert = True)
 
         return 1