18 lines
397 B
18 lines
397 B
class Root(object): |
|
__name__ = None |
|
__parent__ = None |
|
|
|
|
|
def root_factory(request): |
|
return Root() |
|
|
|
|
|
def includeme(config): |
|
''' |
|
Initialize the resources for traversal in a Pyramid app. |
|
|
|
Activate this setup using ``config.include('ordr2.resources')``. |
|
|
|
''' |
|
config.set_root_factory(root_factory) |
|
config.add_static_view('static', 'ordr2:static', cache_max_age=3600)
|
|
|