Пример #1
0
 def __init__(self, app, **options):
     if 'loader' not in options:
         options['loader'] = app.create_global_jinja_loader()
     # Disable cache entirely so that themes can be switched (#662)
     # If the cache is enabled, switching themes will cause odd rendering errors
     SandboxedEnvironment.__init__(self, cache_size=0, **options)
     self.app = app
Пример #2
0
 def __init__(self, app, **options):
     if "loader" not in options:
         options["loader"] = app.create_global_jinja_loader()
     SandboxedEnvironment.__init__(self, **options)
     self.app = app
Пример #3
0
 def __init__(self, app, **options):
     if 'loader' not in options:
         options['loader'] = app.create_global_jinja_loader()
     BaseSandboxedEnvironment.__init__(self, **options)
     self.app = app
Пример #4
0
 def __init__(self, app, **options):
     if 'loader' not in options:
         options['loader'] = app.create_global_jinja_loader()
     BaseSandboxedEnvironment.__init__(self, **options)
     self.app = app