appointment.setPartcipants problem

"Martin Richtarsky" <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <[email protected]>
I'm trying to change the participants for an appointment.
My Python code looks like this:

-----
print "APPOINTMENT BEFORE"
print con.appointment.getById('10540')
p = con.person.fetch({'qualifier': "login='ai4'"})[0]
print "PERSON"
print p
con.appointment.setParticipants({'id': 'skyrix://bo/bo/10540'}, [p,])
print "APPOINTMENT AFTER"
print con.appointment.getById('10540')
-----

con is the ServerProxy connection. The output:

APPOINTMENT BEFORE
{'startDate': <DateTime 20030828T19:13:16 at 821a104>, 'participants': [{'dbStatus': 'inserted', 'name': 'ai3', 'firstname': 'ai3', 
'companyId': 10120, 'number': 'SKY10120', 'objectVersion': 1, 'isLocked': 0, 'isAccount': 1, 'isExtraAccount': 0, 'isPerson': 1, 
'ownerId': 10000, 'login': 'ai3', 'isIntraAccount': 1, 'templateUserId': 9999, 'description': 'ai3'}], 'endDate': <DateTime 
20030829T22:59:56 at 822282c>, 'location': '', 'title': 'bla', 'owner': {'login': 'ai3', 'id': 'skyrix://bo/bo/10120'}, 'id': 
'skyrix://bo/bo/10540'}
PERSON
{'extendedAttrs': {}, 'number': 'SKY10610', 'addresses': {'mailing': {'type': 'mailing', 'id': 'skyrix://bo/bo/10640'}, 'location': 
{'type': 'location', 'id': 'skyrix://bo/bo/10650'}, 'private': {'type': 'private', 'id': 'skyrix://bo/bo/10630'}}, 'firstname': 'ai4', 
'extendedKeys': ['email1', 'email2', 'email3', 'job_title', 'other_title1', 'other_title2'], 'url': '', 'phones': {'15_fax_private': 
{'telephoneId': 10710, 'info': '', 'type': '15_fax_private', 'number': ''}, '05_tel_private': {'telephoneId': 10690, 'info': '', 'type': '05
_tel_private', 'number': ''}, '02_tel': {'telephoneId': 10670, 'info': '', 'type': '02_tel', 'number': ''}, '01_tel': {'telephoneId': 10660, 
'info': '', 'type': '01_tel', 'number': ''}, '10_fax': {'telephoneId': 10700, 'info': '', 'type': '10_fax', 'number': ''}, '03_tel_funk': 
{'telephoneId': 10680, 'info': '', 'type': '03_tel_funk', 'number': ''}}, 'phoneTypes': ['01_tel', '02_tel', '03_tel_funk', '05
_tel_private', '10_fax', '15_fax_private'], 'objectVersion': 1, 'isComplete': <Boolean True at 8199c0c>, 'isPrivate': <Boolean 
False at 819aa6c>, 'isAccount': <Boolean True at 8199c0c>, 'owner': {'login': 'root', 'id': 'skyrix://bo/bo/10000'}, 'login': 'ai4', 
'nickname': 'ai4', 'id': 'skyrix://bo/bo/10610', 'name': 'ai4'}
APPOINTMENT AFTER
{'startDate': <DateTime 20030828T19:13:16 at 822739c>, 'participants': [{'dbStatus': 'inserted', 'name': 'ai3', 'firstname': 'ai3', 
'companyId': 10120, 'number': 'SKY10120', 'objectVersion': 1, 'isLocked': 0, 'isAccount': 1, 'isExtraAccount': 0, 'isPerson': 1, 
'ownerId': 10000, 'login': 'ai3', 'isIntraAccount': 1, 'templateUserId': 9999, 'description': 'ai3'}], 'endDate': <DateTime 
20030829T22:59:56 at 81ec43c>, 'location': '', 'title': 'bla', 'owner': {'login': 'ai3', 'id': 'skyrix://bo/bo/10120'}, 'id': 
'skyrix://bo/bo/10540'}

The appointment I want to modify lists only 'ai3' as participant. I want to add 'ai4',
so I fetch the corresponding Person document and pass it to setParticipants().
However, the appointment does not change.

This happens when I login as 'ai3' or 'root'.

Bug or am I doing something wrong?


Martin

-- 
Web: http://codefactory.de/
ICQ: #124394797

People like to sound important. Weather men on television talk about
shower activity. I even heard one guy on CNN talking about a 'rain event'.
I thought, "Holy shit, I hope I didn't get tickets to that!"  -- George Carlin


-- 
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.