what's dateable.chronos? how to render recurrence events in a calendar portlet?

classic Classic list List threaded Threaded
6 messages Options
Mikko Ohtamaa Mikko Ohtamaa
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

what's dateable.chronos? how to render recurrence events in a calendar portlet?

Hi,

On my quest to figure out how to render recurrencing events in a calendar portlet for Plone 3 I came across of dateable.chronos package.

The package is underdocumented in its current state and you really can't figure out what it is supposed to do or how to use it, even after hard trying. It contains references to old-style calendar portlet, but I didn't figure out any references to new-style portlets.

Also, dateable.chronos does not seem to start with Plone 3.3.5, import failing on here: from Products.CMFDynamicViewFTI.interfaces import IDynamicallyViewable

1) How to render recurrent events in a calendar portlet?

2) Should I care about the fact dateable.chronos does not work?

Cheers,
Mikko
Tom Gross Tom Gross
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: what's dateable.chronos? how to render recurrence events in a calendar portlet?

Hi Mikko,

   you might want to look into vs.event

http://pypi.python.org/pypi/vs.event

I'm not sure if it provides a portlet but it does recurring events and
writing a portlet for it shouldn't be too hard. Vs.event was the basis
for doing the recurrence stuff for plone 4.1 using plone.app.event. it
is not finished yet and can be found here:

https://svn.plone.org/svn/plone/buildouts/plone-coredev/branches/4.0/plips/plip9302-vs-event-integration.cfg

You are more than welcome to join this project and help finish it in a
clean and documented way ;-):

-Tom



On 07/12/2010 03:01 PM, Mikko Ohtamaa wrote:

>
> Hi,
>
> On my quest to figure out how to render recurrencing events in a calendar
> portlet for Plone 3 I came across of dateable.chronos package.
>
> The package is underdocumented in its current state and you really can't
> figure out what it is supposed to do or how to use it, even after hard
> trying. It contains references to old-style calendar portlet, but I didn't
> figure out any references to new-style portlets.
>
> Also, dateable.chronos does not seem to start with Plone 3.3.5, import
> failing on here: from Products.CMFDynamicViewFTI.interfaces import
> IDynamicallyViewable
>
> 1) How to render recurrent events in a calendar portlet?
>
> 2) Should I care about the fact dateable.chronos does not work?
>
> Cheers,
> Mikko
>
> -----
> Mikko Ohtamaa
> mFabrik - Freedom Delivered.
>
> Web site - http://mfabrik.com
> Mobile site - http://mfabrik.mobi
> Blog - http://blog.mfabrik.com

--
My Book "Plone 3 Multimedia" ist available! http://amzn.to/dtrp0C

Tom Gross
[hidden email]
skype.....................tom_gross
web.........http://toms-projekte.de
blog...http://blog.toms-projekte.de

_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Mikko Ohtamaa Mikko Ohtamaa
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: what's dateable.chronos? how to render recurrence events in a calendar portlet?

Tom Gross wrote
Hi Mikko,

   you might want to look into vs.event

http://pypi.python.org/pypi/vs.event

I'm not sure if it provides a portlet but it does recurring events and
writing a portlet for it shouldn't be too hard.
Well... guess what I looked in first. At least vs.event trunk has no hint of portlets and I started to follow it dependencies  (p4a.ploneevent and dateable.chronos).'

So the question is.. how to write a query which renders recurrent events in a calendar view?

You are more than welcome to join this project and help finish it in a
clean and documented way ;-):
Only the persons who write the code can write the according documentation.
Otherwise it is big Pain In The Ass. First you need to learn (undocumented) code which often might take almost as much as time writing the code in the first place with proper documentation :) Unfortunately most of Plone's code is like this and I have already enough pain in my ass :) But I might, assuming there is a related spring in the next conference.

Cheers,
Mikko

Mikko Ohtamaa Mikko Ohtamaa
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: what's dateable.chronos? how to render recurrence events in a calendar portlet?

Mikko Ohtamaa wrote
So the question is.. how to write a query which renders recurrent events in a calendar view?
Any pointers... I would hate to be the first person on earth trying this :(

-Mikko
johannes raggam johannes raggam
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: what's dateable.chronos? how to render recurrence events in a calendar portlet?

On Tue, 2010-07-13 at 03:27 -0700, Mikko Ohtamaa wrote:
>
> Mikko Ohtamaa wrote:
> >
> > So the question is.. how to write a query which renders recurrent events
> > in a calendar view?
> >
>
> Any pointers... I would hate to be the first person on earth trying this :(

hi mikko,

maybe these are some pointers...

dateable.kalends defines the API for events (there is just an
__init__.py which defines the interfaces), especially for recurring
events based on recurrence rules from the dateutil.rrule [1] (which is
extremely powerful). dateable.chronos defines calendar views with
recurrence support. both packages do not implement recurring events -
this has to be done by other packages, like vs.event.

in vs.event you can see how recurrence support is provided by an adapter
for events:
  adapter configuration: vs.event.content.configure.zcml
  adapter factory: vs.event.content.recurrence.VSRecurrenceSupport
        especially the method getOcurrenceDays and getRecurrenceRule are
important.
here you can see, how occurences of an event can be fetched:
  vs.event.browser.vs_event_view.VSEventView.nextDates

as tom said, there is the plone.app.event package which purpose is to
provide content types, views and utilities for calendarish events in one
place - peeled out from Products.ATContentTypes. work has started at the
cathedral sprint in march 2010 and it's far from finished yet. but some
words on this package:
- at the current state it won't use dateable.chronos and
dateable.kalends
- but it uses dateutil.rrule for recurrence support
- it uses Products.DateRecurringIndex for indexing the ocurrences of an
recurring event. Products.DateRecurringIndex [2] is rewritten to support
dateutil.rrule. i've done some API changes recently which aren't
commited yet, so don't rely on what you see there.
- help welcomed. i think a sprint with a dedicated team working on
plone.app.event will be necessary.


best,
hannes

[1]
http://labix.org/python-dateutil#head-470fa22b2db72000d7abe698a5783a46b0731b57

[2]
https://svn.plone.org/svn/collective/Products.DateRecurringIndex/branches/DateRecurringIndex2-dateutils/





_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Mikko Ohtamaa Mikko Ohtamaa
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: what's dateable.chronos? how to render recurrence events in a calendar portlet?

johannes raggam wrote
> Any pointers... I would hate to be the first person on earth trying this :(
I thinks I got it sorted out:

http://svn.plone.org/svn/collective/collective.developermanual/trunk/source/content/events.txt
Loading...