def get(self): image_proxy_config = None if users.is_current_user_admin(): image_proxy_config = md.get_image_proxy_config() self.render('image-proxy-config.html', { 'image_proxy_config':image_proxy_config, 'where':'image_proxy-config' })
def initialize(self, request, response): BaseHandler.initialize(self, request, response) self.image_proxy_config = md.get_image_proxy_config()