exporting recurring dates [kronolith/horde]

View: New views
4 Messages — Rating Filter:   Alert me  

exporting recurring dates [kronolith/horde]

by Niels Dettenbach :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear list readers,


i'm new to this list, but i didn't found any solution yet.

We have a lot of different recurring dates in our kronolith calendars and want
to use them (just a chronological view - read only access) on a external
website (based on ZOPE / python).

For this i tried different ways:
 - using XMLRPC "listEvent" (by python)
 - using the iCal interface

Because there is no chance to get a python library which is able to handle
recurrences in iCal RFC or even Hordes own format (and i have not the time to
write/port one) i need all events including their recurring instances as a
list.

But all exporting functions just seems to give the initial date (instance) in
such cases.

Is there any way to get all instances out? I've read something about
$showRecurrence but the RPC iface won't accept this in my tries.

Any ideas or solutions? Im happy about anything helpful here...

many thanks in advance.
best regards,


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
  ---
--
Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: horde-unsubscribe@...

Re: exporting recurring dates [kronolith/horde]

by roman-39 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Niels Dettenbach schrieb:
> Dear list readers,
>
>
> i'm new to this list, but i didn't found any solution yet.
>
> We have a lot of different recurring dates in our kronolith calendars and want
> to use them (just a chronological view - read only access) on a external
> website (based on ZOPE / python).
>  
something like this?

http://www.finishers.ch/

I use the jsonrpc

still have some "utf8" problem...


> For this i tried different ways:
>  - using XMLRPC "listEvent" (by python)
>  - using the iCal interface
>
> Because there is no chance to get a python library which is able to handle
> recurrences in iCal RFC or even Hordes own format (and i have not the time to
> write/port one) i need all events including their recurring instances as a
> list.
>
> But all exporting functions just seems to give the initial date (instance) in
> such cases.
>
> Is there any way to get all instances out? I've read something about
> $showRecurrence but the RPC iface won't accept this in my tries.
>
> Any ideas or solutions? Im happy about anything helpful here...
>
> many thanks in advance.
> best regards,
>
>
> Niels.
>  

--
Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: horde-unsubscribe@...

Parent Message unknown Re: exporting recurring dates [kronolith/horde]

by Niels Dettenbach :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear roman,

Thanks for your posting. I use pythons xml-rpc which (should) gives me the same API to Horde / Kronolith as jsonrpc (if i'm right here...).

Do you using recurring events in kronolith? If yes, how do you get a list of it (i.e. the further dates of occurence during a timespan). With listEvents() i just get the first ocurrence of an (recurring) event. I'm not able to calculate / get all recurrences (means a list of further dates) of such events. Giving "showRecurrences seems not to change that.

As horde seems to use it's own recurrence data format by XMLRPC and i'ým not able to calculate it byself from ICAL (the available iCal python modules can't handle iCal RFC recurrences) i have no clue how to do it.

If you still did something here may be you can post some lines of the regarding code which does this?

Many thanks for your time.
Best regards,

Niels.

--
Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: horde-unsubscribe@...

Parent Message unknown Re: exporting recurring dates [kronolith/horde]

by Niels Dettenbach :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...',
        '_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
  ---


--
Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: horde-unsubscribe@...

signature.asc (853 bytes) Download Attachment