~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to start-loggerhead.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-09-10 17:30:17 UTC
  • mfrom: (138.1.1 mwhudson-sucks)
  • Revision ID: pqm@pqm.ubuntu.com-20070910173017-teattztsb8ep0aer
[trivial] so i cleaned up the tests, but also broke them :( need to look at getting PQM to run the loggerhead tests...

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
import cherrypy
13
13
cherrypy.lowercase_api = True
14
14
 
15
 
from loggerhead import daemon, release, util
 
15
from loggerhead import daemon, release
16
16
 
17
17
 
18
18
def make_handler(config, filename):
111
111
    Root = Root(config)
112
112
    
113
113
    # re-index every 6 hours
 
114
    
114
115
    index_freq = config.get('cache_rebuild_frequency', 6 * 3600)
115
116
    turbogears.scheduler.add_interval_task(initialdelay=1, interval=index_freq, action=Root._check_rebuild)
116
 
 
117
 
    util.set_date_format(config.get('date_format', 'fancy'))
 
117
    
118
118
    try:
119
119
        turbogears.start_server(Root)
120
120
    finally: