~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/apps/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2010-04-26 19:37:26 UTC
  • mto: This revision was merged to the branch mainline in revision 435.
  • Revision ID: john@arbash-meinel.com-20100426193726-qfhu1t3pn7u1kq1g
Make some of the info calls a bit less noisy.

We don't really need full floating point resolution, milliseconds should be enough.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""WSGI applications for serving Bazaar branches."""
 
2
 
 
3
import os
 
4
 
 
5
from paste import urlparser, fileapp
 
6
 
 
7
from loggerhead.util import convert_file_errors
 
8
 
 
9
static = os.path.join(
 
10
    os.path.dirname(os.path.dirname(__file__)), 'static')
 
11
 
 
12
static_app = urlparser.make_static(None, static)
 
13
 
 
14
favicon_app = convert_file_errors(fileapp.FileApp(
 
15
    os.path.join(static, 'images', 'favicon.ico')))
 
16
 
 
17
robots_app = convert_file_errors(fileapp.FileApp(
 
18
    os.path.join(static, 'robots.txt')))