Skip to content

Commit e6f9c6c

Browse files
author
Alexander Smishlajev
committed
load interfaces in __init__():
interfaces must be accessible before the database is opened
1 parent 2943e3a commit e6f9c6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/instance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: instance.py,v 1.25 2004-10-20 05:28:51 richard Exp $
18+
# $Id: instance.py,v 1.26 2004-10-29 14:01:24 a1s Exp $
1919

2020
'''Tracker handling (open tracker).
2121
@@ -38,6 +38,7 @@ def __init__(self, tracker_home):
3838
self.config = configuration.CoreConfig(tracker_home)
3939
self.cgi_actions = {}
4040
self.templating_utils = {}
41+
self.load_interfaces()
4142

4243
def get_backend_name(self):
4344
o = __builtins__['open']
@@ -69,7 +70,6 @@ def open(self, name=None):
6970
self._load_python('schema.py', vars)
7071
db = vars['db']
7172

72-
self.load_interfaces()
7373
self.load_extensions(db, 'detectors')
7474
self.load_extensions(self, 'extensions')
7575

0 commit comments

Comments
 (0)