3 from PLC.Faults import *
4 from PLC.Method import Method
5 from PLC.Parameter import Parameter, Mixed
6 from PLC.Roles import Role, Roles
7 from PLC.Auth import Auth
13 Returns 1 if successful, faults otherwise.
20 Role.fields['role_id'],
24 returns = Parameter(int, '1 if successful')
27 def call(self, auth, role_id, name):
29 role['role_id'] = role_id
31 role.sync(insert = True)
32 self.event_objects = {'Role': [role['role_id']]}