def get(self): user = users.get_current_user() self.lastModified(template.mtime('index.html')) self.response.out.write(template.render('index.html', presetProxies=((k, v[0]) for k, v in PRESET_PROXIES.items()), pacUrlPrefix=PAC_URL_PREFIX, pacUserUrlPrefix=PAC_USER_URL_PREFIX, userSetting=UserSetting.get_by_key_name(user.user_id()) if user else None, ))
def get(self): user = users.get_current_user() self.lastModified(template.mtime('index.html')) self.response.out.write( template.render( 'index.html', presetProxies=((k, v[0]) for k, v in PRESET_PROXIES.items()), pacUrlPrefix=PAC_URL_PREFIX, pacUserUrlPrefix=PAC_USER_URL_PREFIX, userSetting=UserSetting.get_by_key_name(user.user_id()) if user else None, ))
def get(self): self.lastModified(template.mtime('index.html')) self.response.out.write(template.render('index.html', presetProxies=((k, v[0]) for k, v in PRESET_PROXIES.items()), pacUrlPrefix=PAC_URL_PREFIX, ))