~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/request.py

  • Committer: Andrew Bennetts
  • Date: 2009-03-26 06:59:15 UTC
  • mto: This revision was merged to the branch mainline in revision 4207.
  • Revision ID: andrew.bennetts@canonical.com-20090326065915-n5vmwse4axfc5qhn
Fix BzrDir.open in non-main (and non-server-request) thread when bzrlib.smart.request's _pre_open_hook is installed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
 
59
59
 
60
60
def _pre_open_hook(transport):
61
 
    allowed_transports = jail_info.transports
 
61
    allowed_transports = getattr(jail_info, 'transports', None)
62
62
    if allowed_transports is None:
63
63
        return
64
64
    abspath = transport.base