2 from PLC.Faults import *
3 from PLC.Method import Method
4 from PLC.Parameter import Parameter, Mixed
5 from PLC.Roles import Role, Roles
6 from PLC.Auth import Auth
12 Returns 1 if successful, faults otherwise.
19 Role.fields['role_id'],
23 returns = Parameter(int, '1 if successful')
26 def call(self, auth, role_id, name):
28 role['role_id'] = role_id
30 role.sync(insert = True)
31 self.event_objects = {'Role': [role['role_id']]}