jan: thuban/Thuban/UI about.py,1.15,1.16

cvs@intevation.de cvs at intevation.de
Tue Sep 28 21:17:16 CEST 2004


Author: jan

Update of /thubanrepository/thuban/Thuban/UI
In directory doto:/tmp/cvs-serv10798

Modified Files:
	about.py 
Log Message:
(About.__init__): Added description
of the registered extensions with all of the information.


Index: about.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/UI/about.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- about.py	20 Aug 2004 16:50:22 -0000	1.15
+++ about.py	28 Sep 2004 19:17:14 -0000	1.16
@@ -21,6 +21,8 @@
 from Thuban.version import versions
 from Thuban.Model.resource import gdal_support_status
 
+from Thuban.UI.extensionregistry import ext_registry
+
 class About(wxDialog):
 
     def __init__(self, parent):
@@ -73,6 +75,14 @@
             text+= '\t%s %s\n' % (name, version)
         text += '\n'
 
+        text += _('Extensions:\n')
+        if ext_registry:
+            for ext in ext_registry:
+                text += '\t%s %s\n' % (ext.name, ext.version)
+        else:
+            text += _('\tNone registered.\n')
+        text += '\n'
+
         text += _('Lead Developer:\n')
         text += '\t%s\n\n' % lead_developer
 
@@ -97,6 +107,22 @@
             "\tDevelopers list (public):\n\t\t<thuban-devel at intevation.de>\n"
             "\tThuban team at Intevation:\n\t\t<thuban at intevation.de>\n"
             )
+
+        text += '\n\n'
+
+        text += _("Details on the registered extensions:\n\n")
+
+        if ext_registry:
+            for ext in ext_registry:
+                text += '%s %s:\n' % (ext.name, ext.version)
+                text += _('Copyright %s\n') % ext.copyright
+                text += _('Authors:\n')
+                for author in ext.authors:
+                    text+= '\t%s\n' % author
+                text += ext.desc
+                text += '\n\n'
+        else:
+            text += _('\tNone registered.\n')
 
         self.text = text
 





More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)