svn keywords
[plcapi.git] / PLC / Methods / AddKeyType.py
index 329654f..97c69b8 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 AddKeyType(Method):
 
     returns = Parameter(int, '1 if successful')
 
-    event_type = 'Add'
-    object_type = 'KeyType'
 
     def call(self, auth, name):
         key_type = KeyType(self.api)
         key_type['key_type'] = name
-        key_type.sync()
+        key_type.sync(insert = True)
 
         return 1