Back to index

plone3  3.1.7
getPreviousMonthLink.py
Go to the documentation of this file.
00001 ##parameters=base_url, month, year
00002 
00003 prevMonthTime = container.portal_calendar.getPreviousMonth(month, year)
00004 
00005 # Takes a base url and returns a link to the previous month
00006 x = '%s?month:int=%d&year:int=%d' % (
00007                                      base_url,
00008                                      prevMonthTime.month(),
00009                                      prevMonthTime.year()
00010                                      )
00011 
00012 return x