~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Matt Nordhoff
  • Date: 2009-06-03 03:44:36 UTC
  • mfrom: (359.2.2 allow-writes)
  • mto: This revision was merged to the branch mainline in revision 367.
  • Revision ID: mnordhoff@mattnordhoff.com-20090603034436-coxomawr6tfmmfj6
Merge allow-writes

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
            host = DEFAULT_HOST
71
71
        if port is None:
72
72
            port = DEFAULT_PORT
73
 
        allow_writes = not transport.is_readonly()
74
 
        argv = ['--host', host, '--port', str(port),
75
 
            '--allow-writes', allow_writes, transport.base]
 
73
        argv = ['--host', host, '--port', str(port), '--', transport.base]
 
74
        if not transport.is_readonly():
 
75
            argv.insert(0, '--allow-writes')
76
76
        config = LoggerheadConfig(argv)
77
77
        app = BranchesFromTransportRoot(transport, config)
78
78
        app = HTTPExceptionHandler(app)