~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/apps/filesystem.py

  • Committer: Michael Hudson
  • Date: 2008-09-30 03:05:31 UTC
  • mfrom: (226.1.3 fix-breadcrumbs)
  • Revision ID: michael.hudson@canonical.com-20080930030531-at8220tnkx9pvqcw
small fixes to the breadcrumbs in the --prefix case.
(thanks Matt Nordhoff for the prods)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
 
18
18
class BranchesFromFileSystemServer(object):
19
 
 
20
19
    def __init__(self, path, root, name=None):
21
20
        self.path = path
22
21
        self.root = root
44
43
                name = self.name
45
44
            else:
46
45
                name = '/'
47
 
            return DirectoryUI(environ['loggerhead.static.url'],
48
 
                               self.path,
49
 
                               name)
 
46
            return DirectoryUI(environ['loggerhead.static.url'], self.path, name)
50
47
        else:
51
48
            new_path = os.path.join(self.path, segment)
52
49
            if self.name: