~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/apps/config.py

  • Committer: Matt Nordhoff
  • Date: 2008-06-25 07:03:06 UTC
  • mto: This revision was merged to the branch mainline in revision 177.
  • Revision ID: mnordhoff@mattnordhoff.com-20080625070306-84cay4vdizkdic8g
Convert old-style classes to new-style

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
from loggerhead.history import is_branch
25
25
 
26
 
class Project (object):
 
26
class Project(object):
27
27
    def __init__(self, name, config, root_config):
28
28
        self.name = name
29
29
        self.friendly_name = config.get('name', name)
128
128
    def browse(self, response):
129
129
        for p in self.projects:
130
130
            p._recheck_auto_folders()
131
 
        class branch:
 
131
        class branch(object):
132
132
            @staticmethod
133
133
            def static_url(path):
134
134
                return self._static_url_base + path