get rid of svn keywords once and for good
[plcapi.git] / PLC / Methods / AddKeyType.py
index 329654f..b3690a8 100644 (file)
@@ -20,12 +20,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