Mercurial > p > roundup > code
comparison roundup/instance.py @ 2647:8c46091c36d0
Main Roundup configuration class renamed to CoreConfig.
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Tue, 27 Jul 2004 11:34:11 +0000 |
| parents | 18e86941c950 |
| children | 1f0143b53bee |
comparison
equal
deleted
inserted
replaced
| 2646:fd7b2fc1eb28 | 2647:8c46091c36d0 |
|---|---|
| 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 17 # | 17 # |
| 18 # $Id: instance.py,v 1.18 2004-07-27 02:30:31 richard Exp $ | 18 # $Id: instance.py,v 1.19 2004-07-27 11:34:11 a1s Exp $ |
| 19 | 19 |
| 20 '''Tracker handling (open tracker). | 20 '''Tracker handling (open tracker). |
| 21 | 21 |
| 22 Backwards compatibility for the old-style "imported" trackers. | 22 Backwards compatibility for the old-style "imported" trackers. |
| 23 ''' | 23 ''' |
| 32 self.__dict__.update(vars) | 32 self.__dict__.update(vars) |
| 33 | 33 |
| 34 class Tracker: | 34 class Tracker: |
| 35 def __init__(self, tracker_home): | 35 def __init__(self, tracker_home): |
| 36 self.tracker_home = tracker_home | 36 self.tracker_home = tracker_home |
| 37 self.config = configuration.Config(tracker_home) | 37 self.config = configuration.CoreConfig(tracker_home) |
| 38 self.cgi_actions = {} | 38 self.cgi_actions = {} |
| 39 self.templating_utils = {} | 39 self.templating_utils = {} |
| 40 | 40 |
| 41 def get_backend(self): | 41 def get_backend(self): |
| 42 o = __builtins__['open'] | 42 o = __builtins__['open'] |
| 146 if not hasattr(tracker, required): | 146 if not hasattr(tracker, required): |
| 147 raise TrackerError, \ | 147 raise TrackerError, \ |
| 148 'Required tracker attribute "%s" missing'%required | 148 'Required tracker attribute "%s" missing'%required |
| 149 | 149 |
| 150 # load and apply the config | 150 # load and apply the config |
| 151 tracker.config = configuration.Config(tracker_home) | 151 tracker.config = configuration.CoreConfig(tracker_home) |
| 152 # FIXME! dbinit does "import config". | 152 # FIXME! dbinit does "import config". |
| 153 # What would be the upgrade plan for existing trackers? | 153 # What would be the upgrade plan for existing trackers? |
| 154 tracker.dbinit.config = tracker.config | 154 tracker.dbinit.config = tracker.config |
| 155 | 155 |
| 156 return tracker | 156 return tracker |
