/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/branch.py

  • Committer: Matt Nordhoff
  • Date: 2009-05-02 02:42:49 UTC
  • mfrom: (334.1.1 serve_public_branch)
  • Revision ID: mnordhoff@mattnordhoff.com-20090502024249-0hwrt4lv747j0poi
Use the branch's public_branch as the default for served_url (bug #369767)

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
            self._static_url_base = self._url_base
120
120
        self._environ = environ
121
121
        if self.served_url is _DEFAULT:
122
 
            self.served_url = self.url([])
 
122
            public_branch = self.branch_url()
 
123
            if public_branch is not None:
 
124
                self.served_url = public_branch
 
125
            else:
 
126
                self.served_url = self.url([])
123
127
        path = request.path_info_pop(environ)
124
128
        if not path:
125
129
            raise httpexceptions.HTTPMovedPermanently(