Thank you for the pointers.
Just for the records, I solved the issue doing that:
I've copied file calendar.py from Plone 3 to my browser product folder in
Plone 4.
Then, declared the calendar_view in configure.zcml, on the same folder,
like this:
<browser:page
for="*"
name="calendar_view"
class=".calendar.CalendarPortlet"
permission="zope2.View"
allowed_interface="Products.CMFPlone.browser.interfaces.ICalendarPortlet"
/>
With that in place, I could use the calendar_view
inserting it in a tal:define="view context/@@calendar_view; yearmonth
view/getYearAndMonthToDisplay;"
Humm... solved the issue by copying the calendar.py from Plone 3 (that was
deprecated) to Plone 4. Strange, no?
Not sure if this is the best way, but it just works.
I've also tried to use plone.app.portlets.portlets.calendar module from
Plone 4, but the class had changed and I got an error.
Marcello
--
View this message in context:
http://plone.293351.n2.nabble.com/how-to-use-calendar-view-in-a-Plone4-template-tp5334188p5340687.html
Sent from the Product Developers mailing list archive at Nabble.com.
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers