~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/apps/__init__.py

  • Committer: Andrew Bennetts
  • Date: 2011-06-28 13:13:05 UTC
  • Revision ID: andrew.bennetts@canonical.com-20110628131305-skv4h2z02z3iw8wc
Extract some refactoring of TemplatedBranchView and BranchWSGIApp from the jsonify branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
static = os.path.join(
10
10
    os.path.dirname(os.path.dirname(__file__)), 'static')
11
11
 
12
 
static_app = urlparser.make_static(None, static)
 
12
# Static things can be cached for half a day, we could probably make this
 
13
# longer, except for just before rollout times.
 
14
static_app = urlparser.make_static(None, static, cache_max_age=12*60*60)
13
15
 
14
16
favicon_app = convert_file_errors(fileapp.FileApp(
15
17
    os.path.join(static, 'images', 'favicon.ico')))