~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/apps/filesystem.py

  • Committer: Michael Hudson
  • Date: 2008-08-16 06:34:03 UTC
  • Revision ID: michael.hudson@canonical.com-20080816063403-2lvu1e79mpv3ymg5
make the tab capitalization consistent, see bug #252867

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
25
24
    def app_for_branch(self, branch):
26
25
        if not self.name:
27
26
            name = branch.nick
28
 
            is_root = True
29
27
        else:
30
28
            name = self.name
31
 
            is_root = False
32
29
        branch_app = BranchWSGIApp(
33
 
            branch, name, {'cachepath': sql_dir}, self.root.graph_cache,
34
 
            is_root=is_root)
 
30
            branch, name, {'cachepath': sql_dir}, self.root.graph_cache)
35
31
        return branch_app.app
36
32
 
37
33
    def app_for_non_branch(self, environ):
44
40
                name = self.name
45
41
            else:
46
42
                name = '/'
47
 
            return DirectoryUI(environ['loggerhead.static.url'],
48
 
                               self.path,
49
 
                               name)
 
43
            return DirectoryUI(environ['loggerhead.static.url'], self.path, name)
50
44
        else:
51
45
            new_path = os.path.join(self.path, segment)
52
46
            if self.name: