/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/apps/transport.py

  • Committer: Martin Pool
  • Date: 2011-11-23 08:33:12 UTC
  • mto: This revision was merged to the branch mainline in revision 461.
  • Revision ID: mbp@canonical.com-20111123083312-4stzhfv5843jxv2k
Bump version to 1.18.1; compatible with bzr 2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335  USA
 
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
#
17
17
"""Serve branches at urls that mimic a transport's file system layout."""
18
18
 
19
19
import threading
20
20
 
21
 
from breezy import branch, errors, lru_cache, urlutils
22
 
from breezy.config import LocationConfig
23
 
from breezy.bzr.smart import request
24
 
from breezy.transport import get_transport
25
 
from breezy.transport.http import wsgi
 
21
from bzrlib import branch, errors, lru_cache, urlutils
 
22
from bzrlib.config import LocationConfig
 
23
from bzrlib.smart import request
 
24
from bzrlib.transport import get_transport
 
25
from bzrlib.transport.http import wsgi
26
26
 
27
27
from paste.request import path_info_pop
28
28
from paste import httpexceptions
33
33
from loggerhead.apps import favicon_app, robots_app, static_app
34
34
from loggerhead.controllers.directory_ui import DirectoryUI
35
35
 
36
 
# TODO: Use breezy.ui.bool_from_string(), added in bzr 1.18
 
36
# TODO: Use bzrlib.ui.bool_from_string(), added in bzr 1.18
37
37
_bools = {
38
38
    'yes': True, 'no': False,
39
39
    'on': True, 'off': False,