jan: thuban/Thuban/UI application.py,1.38,1.39
cvs@intevation.de
cvs at intevation.de
Thu Mar 10 23:44:21 CET 2005
Author: jan
Update of /thubanrepository/thuban/Thuban/UI
In directory doto:/tmp/cvs-serv3421
Modified Files:
application.py
Log Message:
(ThubanApplication.OnInit): Add the initialization of the extensions.
(ThubanApplication.init_extensions): Init all extensions.
Index: application.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/UI/application.py,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- application.py 13 Dec 2004 11:52:34 -0000 1.38
+++ application.py 10 Mar 2005 22:44:18 -0000 1.39
@@ -1,4 +1,4 @@
-# Copyright (C) 2001, 2002, 2003, 2004 by Intevation GmbH
+# Copyright (C) 2001-2005 by Intevation GmbH
# Authors:
# Jan-Oliver Wagner <jan at intevation.de>
# Bernhard Herzog <bh at intevation.de>
@@ -30,6 +30,8 @@
from Thuban.Model.layer import RasterLayer
import Thuban.Model.resource
+from extensionregistry import ext_registry
+
import view
import tree
import mainwindow
@@ -71,6 +73,7 @@
if self.splash is not None:
self.splash.Show()
self.read_startup_files()
+ self.init_extensions()
self.top = self.CreateMainWindow()
# The session was alredy created above and we need to get the
# map into the mainwindow. maps_changed does that.
@@ -121,6 +124,11 @@
else:
# There's no .thuban directory
sys.stderr.write(_("No ~/.thuban directory\n"))
+
+ def init_extensions(self):
+ """Call initialization callbacks for all registered extensions."""
+ for ext in ext_registry:
+ ext.init_ext()
def splash_screen(self):
"""Create and return a splash screen.
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)