~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/controllers/directory_ui.py

  • Committer: Tom Haddon
  • Date: 2008-11-24 20:26:26 UTC
  • mto: This revision was merged to the branch mainline in revision 246.
  • Revision ID: tom.haddon@canonical.com-20081124202626-x0sva3e7zxlqtckw
Allow the script to run as root or another user, but start the loggerhead process as the correct user

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
            def static_url(path):
58
58
                return self._static_url_base + path
59
59
        self._branch = _branch
60
 
        self._history_callable = lambda:None
 
60
        self._history = None
61
61
        self._path = path
62
62
        self._name = name
63
63
        self._static_url_base = static_url_base
64
64
        self.log = logging.getLogger('')
65
65
 
66
 
    def get_values(self, path, kwargs, response):
 
66
    def get_values(self, h, revid, path, kwargs, response):
67
67
        listing = [d for d in os.listdir(self._path)
68
68
                   if not d.startswith('.')
69
69
                   and os.path.isdir(os.path.join(self._path, d))]