Mercurial > p > roundup > code
comparison roundup/instance.py @ 2796:7f1e17aeca1b
journaltag is optional
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 20 Oct 2004 05:28:51 +0000 |
| parents | 402d6d556558 |
| children | 473d2323bc9d |
comparison
equal
deleted
inserted
replaced
| 2795:4992da7c96ae | 2796:7f1e17aeca1b |
|---|---|
| 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.24 2004-10-08 05:37:44 richard Exp $ | 18 # $Id: instance.py,v 1.25 2004-10-20 05:28:51 richard 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 ''' |
| 48 | 48 |
| 49 def get_backend(self): | 49 def get_backend(self): |
| 50 name = self.get_backend_name() | 50 name = self.get_backend_name() |
| 51 return getattr(backends, name) | 51 return getattr(backends, name) |
| 52 | 52 |
| 53 def open(self, name): | 53 def open(self, name=None): |
| 54 backend = self.get_backend() | 54 backend = self.get_backend() |
| 55 vars = { | 55 vars = { |
| 56 'Class': backend.Class, | 56 'Class': backend.Class, |
| 57 'FileClass': backend.FileClass, | 57 'FileClass': backend.FileClass, |
| 58 'IssueClass': backend.IssueClass, | 58 'IssueClass': backend.IssueClass, |
