def __init__(self): ''' Constructor ''' self.url = '' self.url_linktext = '' self.isAuth = True self.d = Tzinfo.jst_date(datetime.datetime.now())
def get(self): ''' 日付別一覧 初期表示 ''' today = Tzinfo.jst_date(datetime.datetime.now()) today = str(today.year) + str(today.month).zfill(2) + str(today.day).zfill(2) studyUnits = dsmodels.StudyUnit.all().filter('registrant = ', users.get_current_user()).filter('timeStamp = ', today).order('updateDate') existDataLists = (ListPerDate()).getExistData(today) template_values = { 'studyUnits': studyUnits, 'existDataLists': existDataLists } path = os.path.join(os.path.dirname(__file__), '../views/listPerDate.html') self.response.out.write(template.render(path, template_values))