~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to serve-branches

  • Committer: Martin Albisetti
  • Date: 2009-05-27 12:52:49 UTC
  • mto: (352.6.11 serve-config)
  • mto: This revision was merged to the branch mainline in revision 364.
  • Revision ID: martin.albisetti@canonical.com-20090527125249-b9o7ajvls7jvpjf1
Less windows-ism

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
 
#
3
 
# Copyright (C) 2008, 2009 Canonical Ltd
4
 
#
5
2
# This program is free software; you can redistribute it and/or modify
6
3
# it under the terms of the GNU General Public License as published by
7
4
# the Free Software Foundation; either version 2 of the License, or
54
51
 
55
52
    load_plugins()
56
53
 
57
 
    if config.get_option('allow_writes'):
58
 
        transport = get_transport(path)
59
 
    else:
60
 
        transport = get_transport('readonly+' + path)
 
54
    transport = get_transport(path)
61
55
 
62
56
    if config.get_option('trunk_dir') and not config.get_option('user_dirs'):
63
57
        print "--trunk-dir is only valid with --user-dirs"
95
89
 
96
90
    # setup_logging() #end
97
91
 
 
92
    app = TransLogger(app, logger=logger)
98
93
    if config.get_option('profile'):
99
94
        from loggerhead.middleware.profile import LSProfMiddleware
100
95
        app = LSProfMiddleware(app)
129
124
 
130
125
    app = HTTPExceptionHandler(app)
131
126
    app = ErrorHandlerApp(app)
132
 
    app = TransLogger(app, logger=logger)
133
127
 
134
128
    if not config.get_option('user_port'):
135
129
        port = '8080'