~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:17 UTC
  • mto: (359.3.3 hpss-writes)
  • mto: This revision was merged to the branch mainline in revision 362.
  • Revision ID: mnordhoff@mattnordhoff.com-20090603034417-45vmlp2u1t9ddybp
Fix a stupid mistake constructing argv

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)