~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/controllers/directory_ui.py

  • Committer: Michael Hudson
  • Date: 2009-03-17 05:06:34 UTC
  • mto: (305.1.1 iter_changes-forevar)
  • mto: This revision was merged to the branch mainline in revision 307.
  • Revision ID: michael.hudson@canonical.com-20090317050634-kfzqvs94upitx8ov
reduce duplicated code and work

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 = None
 
60
        self._history_callable = lambda: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, h, revid, path, kwargs, response):
 
66
    def get_values(self, 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))]