Example #1
0
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 + '/'
Example #2
0
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 + '/'
Example #3
0
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 + '/'
Example #4
0
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+'/'
Example #5
0
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+'/'
Example #6
0
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+'/'