1 from PLC.Faults import *
2 from PLC.Method import Method
3 from PLC.Parameter import Parameter, Mixed
4 from PLC.Roles import Role, Roles
5 from PLC.Auth import Auth
11 Returns 1 if successful, faults otherwise.
18 Role.fields['role_id'],
22 returns = Parameter(int, '1 if successful')
28 def call(self, auth, role_id, name):
30 role['role_id'] = role_id
32 role.sync(insert = True)
33 self.object_ids = [role['role_id']]