def path_history_link(path): from_dt = datefuncs.start_of_year(datetime.datetime.now().year).isoformat() return ('/reporting/history/path/%s/?from=%s' % (path.replace('.', '_'), from_dt))
def acct_history_link(id): from_dt = datefuncs.start_of_year(datetime.datetime.now().year).isoformat() return ('/reporting/history/account/%s/?from=%s' % (id, from_dt))