def create_month_href(locale, date, month_delta, root): date += datetime.timedelta(days=30 * month_delta) year, month, day = date_to_str_tuple(date) return root + '/' + locale + '/month/' + year + '/' + month + '/'
def create_week_href(locale, date, week_delta, root): date += datetime.timedelta(weeks=week_delta) year, month, day = date_to_str_tuple(date) return root + '/' + locale + '/week/' + year + '/' + month + '/' + day + '/'
def create_day_href(locale, date, day_delta, root): date += datetime.timedelta(days=day_delta) year, month, day = date_to_str_tuple(date) return root + '/' + locale + '/day/' + year + '/' + month + '/' + day + '/'
def create_month_href(locale,date,month_delta,root): date += datetime.timedelta(days = 30*month_delta) year,month,day = date_to_str_tuple(date) return root+'/'+locale+'/month/'+year+'/'+month+'/'
def create_week_href(locale,date,week_delta,root): date += datetime.timedelta(weeks = week_delta) year,month,day = date_to_str_tuple(date) return root+'/'+locale+'/week/'+year+'/'+month+'/'+day+'/'
def create_day_href(locale,date,day_delta,root): date += datetime.timedelta(days = day_delta) year,month,day = date_to_str_tuple(date) return root+'/'+locale+'/day/'+year+'/'+month+'/'+day+'/'