[horde] exporting recurring dates [kronolith/horde]
Niels Dettenbach
nd at syndicat.com
Tue Nov 3 11:15:29 UTC 2009
On Monday 02 November 2009 10:16:17 you wrote:
> Yes, some of the events are repetitive.
> Such As " Lauftraining - Mittwoch" .
>
> > If yes, how do you get a list of it (i.e. the further dates of occurence
> > during a timespan).
>
> according to
> http://cvs.horde.org/h/chora/co.php/kronolith/lib/api.php?r=1.241
Ok - thank you,
i did this in PHP (by using Hordes RPC.php) which seems to work fine (except
the number of events is 'to much' or the timespan is 'to long' - then the
server responds just with ["version"]=> string(3) "1.1").
but
If i try to use RPC by python client (from a external webserver) it won't
work:
rpc_parameters = { 'startstamp' : '1257202800', 'endstamp' : '1269406800' ,
'calendars' : niels.xxxx }
content = server.calendar.listEvents(rpc_parameters)
i have tried with one test date in that calendar which is auto-recurring each
2 days (tried 20 times or unlimited)
I just get out ONE record in content - this means i have to calculate each
further occurrence of THIS date byself, or not?
{'41f15cb6138528120035049ae20514ba':
{'eventID': '41f15cb6138528120035049ae20514ba',
'_sequence': '',
'private': False,
'stored': True,
'keywords': [''],
'initialized': True,
'category': '',
'end': {
'mday': 4,
'hour': 8,
'min': 0,
'month': 11,
'sec': 0,
'year': 2009,
'_supportedSpecs': '%CdDeHImMnRStTyYbBpxX'},
'title': 'Test-Recurring 2 daily',
'recurrence': {
'recurType': 1, 'completions': [], 'recurInterval': 2,
'recurCount': 20, 'start': {
'mday': 4, 'hour': 6, 'min': 0, 'month': 11,
'sec': 0, 'year': 2009, '_supportedSpecs': '%CdDeHImMnRStTyYbBpxX'},
'recurEnd': '', 'exceptions': [], 'recurData': ''},
'start': {
'mday': 4,
'hour': 6,
'min': 0,
'month': 11,
'sec': 0,
'year': 2009,
'_supportedSpecs': '%CdDeHImMnRStTyYbBpxX'},
'location': '',
'status': '2',
'description': 'recurrence test',
'remoteCal': '',
'_varRenderer': '',
'_calendar': 'niels.xxxx',
'creatorID': 'niels.xxxx',
'attendees':
[], 'remoteUrl': '',
'alarm': 0,
'_uid': '20091103103741.28043uet7m0lmew0 at radio.syndicat.com',
'_properties': [],
'durMin': 120}
}
any ideas?
Otherwise i have to write a own XMLRPC wrapper script which delivers all the
required date records to the external (python) client, but i thought XMLRPC is
a generic standard for different languages?
I will try to dig into Hordes RPC.php and jsonrpc...
Many thanks for all your help.
NIels.
--
---
Niels Dettenbach
---
Syndicat IT&Internet
http://www.syndicat.com
T.-Muentzer.-Str. 2, 37308 Heilbad Heiligenstadt - DE
---
Kryptoinfo:
PGP public key ID 651CA20D
Fingerprint: 55E0 4DCD B04C 4A49 1586 88AE 54DC 4465 651C A20D
https://syndicat.com/pub_key.asc
---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.horde.org/archives/horde/attachments/20091103/6d28f200/attachment.bin>
More information about the horde
mailing list