CPI Ordering System (the old version)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
''' views (sub) package for ordr '''
|
|
|
|
|
|
|
|
|
|
|
|
def includeme(config):
|
|
|
|
'''
|
|
|
|
Initialize the views in a Pyramid app.
|
|
|
|
|
|
|
|
Activate this setup using ``config.include('ordr2.views')``.
|
|
|
|
'''
|
|
|
|
settings = config.get_settings()
|
|
|
|
age = int(settings.get('static_views.cache_max_age', 3600))
|
|
|
|
|
|
|
|
config.add_static_view('static', 'ordr:static', cache_max_age=age)
|
|
|
|
config.add_static_view('deform', 'deform:static', cache_max_age=age)
|
|
|
|
config.scan()
|