[Product-Developers] Re: implementing Product interfaces
Hedley Roos
hedley at upfrontsystems.co.za
Mon Jun 16 15:21:05 UTC 2008
Hedley Roos wrote:
> Your post reminded me of a bit of code I have lying somewhere. Basically
> I wanted to activate a calendar on a particular folder.
>
> from p4a.calendar.interfaces import ICalendarConfig
> config = ICalendarConfig(folder)
> config.calendar_activated = True
> folder.reindexObject()
>
> IIRC you can then do http://server/folder/@@month.
>
> HTH
> Hedley
>
Sorry for replying to my own post, but as Martin stated the correct
approach is using zcml. My approach requires that you subscribe to your
folserish item's create event and then activate that interface.
More information about the Product-Developers
mailing list