~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/wsgi.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-06-06 13:56:24 UTC
  • mfrom: (3477.1.2 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080606135624-1ambbf8pct52xfh8
(jam) Move bzrlib.tests.test_diff.UnicodeFilename into
        bzrlib.tests.UnicodeFilenameFeature

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
from bzrlib.urlutils import local_path_to_url
28
28
    
29
29
 
30
 
def make_app(root, prefix, path_var='REQUEST_URI', readonly=True,
31
 
    load_plugins=True, enable_logging=True):
 
30
def make_app(root, prefix, path_var='REQUEST_URI', readonly=True):
32
31
    """Convenience function to construct a WSGI bzr smart server.
33
32
    
34
33
    :param root: a local path that requests will be relative to.
40
39
        base_transport = get_transport('readonly+' + local_url)
41
40
    else:
42
41
        base_transport = get_transport(local_url)
43
 
    if load_plugins:
44
 
        from bzrlib.plugin import load_plugins
45
 
        load_plugins()
46
 
    if enable_logging:
47
 
        import bzrlib.trace
48
 
        bzrlib.trace.enable_default_logging()
49
42
    app = SmartWSGIApp(base_transport, prefix)
50
43
    app = RelpathSetter(app, '', path_var)
51
44
    return app