Back to index

plone3  3.1.7
calendar.py
Go to the documentation of this file.
00001 # -*- coding: UTF-8 -*-
00002 from zope.interface import implements
00003 from plonekssview import PloneKSSView
00004 from kss.core import force_unicode, kssaction
00005 from interfaces import IPloneKSSView
00006 
00007 class CalendarView(PloneKSSView):
00008 
00009     # --
00010     # Calendar in-place refreshment
00011     # --
00012 
00013     implements(IPloneKSSView)
00014 
00015     @kssaction
00016     def refreshCalendar(self, month, year, portlethash):
00017         'In-place refreshment of the calendar.'
00018         month, year = int(month), int(year)
00019         self.getCommandSet('plone').refreshPortlet(portlethash, year=year, month=month)