Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/b/u/Buckley-HEAD/sketch/controllers.py   Buckley(Download)
from sketch.webapp import RequestHandler
from sketch.templating import jinja
from sketch.util import hasmethod, hasvar, getmethattr, force_unicode
 
class Messages(object):
  def get_styles(self, template_vars):
    if not hasattr(self, 'styles'):
      return template_vars
 
    styles_dict = getmethattr(self, 'styles')
      return template_vars
 
    scripts_dict = getmethattr(self, 'javascripts')
    js_tmp = ""
 
  def get_template_set(self):
    if hasattr(self, 'template_set'):
      return getmethattr(self, 'template_set')
    if (self.config.default_template_set):
      return self.config.default_template_set
  def get_template_theme(self, template_set=None):
    if template_set in self.config.template_themes:
      return self.config.template_themes[template_set]
    if hasattr(self, 'template_theme'):
      return getmethattr(self, 'template_theme')