Il 25/07/2010 03:58, bax ha scritto:
> Hello,
> In Plone3 I used to do like this:
>
> <div metal:define-macro="portlet"
> tal:define="yearmonth here/getYearAndMonthToDisplay;"
> ...
>
> to get Year And Month To Display.
>
> Now, in Plone4, it seems to me that we should use something like:
>
> <div metal:define-macro="portlet"
> tal:define="view context/@@calendar_view;
> yearmonth view/getYearAndMonthToDisplay;"
> ...
>
> But it doesn't work.
> Gives me a AttributeError: @@calendar_view
>
I think there's no more a @@calendar_view:
y...@macbook:~/progetti/plone/plone4$ grep -r -i calendar_view *
buildout-cache/eggs/Plone-4.0b1-py2.6.egg/Products/CMFPlone/skins/plone_templates/calendar_macros.pt:
tal:define="view context/@@calendar_view;
y...@macbook:~/progetti/plone/plone4$
Take a look to the actual use of it in the portlet.
> What am I missing?
>
> Thank you.
> Marcello
>
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers