Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

appointment.setPartcipants problem: msg#00039

cms.opengroupware.xmlrpc.devel

Subject: appointment.setPartcipants problem

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
xmlrpc@xxxxxxxxxxxxxxxxx
http://mail.opengroupware.org/mailman/listinfo/xmlrpc



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation