예제 #1
0
 def __init__(self, env, options):
     Type.__init__(self, env, options)
     self.extra_params = {
         'doctitle_xform': False,
         'initial_header_level': '2',
         'syntax_highlight': 'short'}
     self.extra_params.update(options)
예제 #2
0
 def __init__(self, env, options):
     Type.__init__(self, env, options)
     self.source = ChoiceSource(env, options)
예제 #3
0
 def __init__(self, env, options):
     Type.__init__(self, env, options)
     self.flow_blocks = [
         x.strip() for x in options.get("flow_blocks", "").split(",") if x.strip()
     ] or None
예제 #4
0
파일: multi.py 프로젝트: jab/lektor
 def __init__(self, env, options):
     Type.__init__(self, env, options)
     self.source = ChoiceSource(env, options)
예제 #5
0
파일: flow.py 프로젝트: ChillarAnand/lektor
 def __init__(self, env, options):
     Type.__init__(self, env, options)
     self.flow_blocks = [
         x.strip() for x in options.get('flow_blocks', '').split(',')
         if x.strip()] or None
예제 #6
0
 def __init__(self, env, options):
     Type.__init__(self, env, options)
     self.flow_blocks = [
         x.strip()
         for x in options.get('flow_blocks', '').split(',') if x.strip()
     ] or None
예제 #7
0
파일: flow.py 프로젝트: jab/lektor
 def __init__(self, env, options):
     Type.__init__(self, env, options)
예제 #8
0
 def __init__(self, env, options):
     Type.__init__(self, env, options)
     self.flow_blocks = [x.strip() for x in options.get("flow_blocks", "").split(",") if x.strip()] or None
 def __init__(self, env, options, client_id, client_secret, access_token=None):
     Type.__init__(self, env, options)
     self.client_id = client_id
     self.client_secret = client_secret
     self.access_token = access_token
예제 #10
0
파일: flow.py 프로젝트: jab/lektor
 def __init__(self, env, options):
     Type.__init__(self, env, options)