~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/apps/transport.py

  • Committer: Matt Nordhoff
  • Date: 2010-05-05 19:00:04 UTC
  • mfrom: (415.1.6 relative-links)
  • Revision ID: mnordhoff@mattnordhoff.com-20100505190004-6epqr5vrfajlteui
Generate relative links where possible (Michael Hudson, Matt Nordhoff)

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
    def app_for_non_branch(self, environ):
70
70
        segment = path_info_pop(environ)
71
71
        if segment is None:
72
 
            raise httpexceptions.HTTPMovedPermanently(
73
 
                environ['SCRIPT_NAME'] + '/')
 
72
            raise httpexceptions.HTTPMovedPermanently.relative_redirect(
 
73
                environ['SCRIPT_NAME'] + '/', environ)
74
74
        elif segment == '':
75
75
            if self.name:
76
76
                name = self.name