engineauth['provider.facebook'] = { 'client_id': FACEBOOK_APP_KEY, 'client_secret': FACEBOOK_APP_SECRET, 'scope': 'email', } def webapp_add_wsgi_middleware(app): from engineauth import middleware return middleware.AuthMiddleware(app) ###################### Being DataList ###################### # delete old data keys = DataList.query().fetch(keys_only=True) ndb.delete_multi(keys) time.sleep(5) try: with open('csv/data_list.csv') as csvfile: csvread = csv.reader(csvfile, delimiter=',') for row in csvread: data_list = DataList(type_name=row[0], description=row[1].decode('iso-8859-1'), link=row[2]) data_list.put() except AssertionError as error: print "error" ###################### End DataList ########################
def get_template_values(self): template_values = super(InformationView, self).get_template_values() information = DataList.query().filter(DataList.type_name == 'information') template_values['information_list'] = information return template_values
def get_template_values(self): template_values = super(MotivationView, self).get_template_values() motivation = DataList.query().filter(DataList.type_name == 'motivation') template_values['motivation_list'] = motivation return template_values
def get_template_values(self): template_values = super(DigitalizationView, self).get_template_values() digitalization = DataList.query().filter(DataList.type_name == 'digitalization') template_values['digitalization_list'] = digitalization return template_values