OpenGroupware Coils Wiki
Status: Beta
Brought to you by:
whitemice
Using putObject to put a [taskNotation] entity to the server is the method for adding commentary to a task as well as changing the status of a task. For a simple comment use the action string of "comment", otherwise use "accept", "done", "reject", or "archive" to change the state of the task along with an optional comment value.
if __name__ == '__main__':
username = raw_input('Username:')
secret = getpass.getpass('Password:')
transport = whitemice_transport.Transport()
transport.credentials = (username, secret)
rpc2_server = xmlrpclib.ServerProxy(
'http://cois.example.com/RPC2',
transport=transport)
tasks = rpc2_server.zogi.getObjectsById(TASK_IDS, 0)
for task in [x for x in tasks if x['entityName'] == 'Task']:
task = rpc2_server.zogi.putObject({
'entityName': 'taskNotation',
'taskObjectId': task['objectId'],
'comment': 'Administrative archive; user account defunct',
'action': 'archive', }
)
print(
'Status of OGo#{0} is now "{1}"'.
format(
task['objectId'],
task['status'],
)
)
TBD For now see the documentation in the WMOGAG pdf.
News: 2013/04/opengroupware-coils-0149rc22-uploaded
Wiki: taskNotation
Wiki: zOGI