jan: thuban/Extensions/bboxdump bboxdump.py,1.2,1.3

cvs@intevation.de cvs at intevation.de
Wed May 12 00:34:51 CEST 2004


Author: jan

Update of /thubanrepository/thuban/Extensions/bboxdump
In directory doto:/tmp/cvs-serv30058/bboxdump

Modified Files:
	bboxdump.py 
Log Message:
Use FindOrInsertMenu() instead of finding menu on its own.


Index: bboxdump.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/bboxdump/bboxdump.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- bboxdump.py	4 May 2004 17:17:00 -0000	1.2
+++ bboxdump.py	11 May 2004 22:34:49 -0000	1.3
@@ -14,6 +14,8 @@
 """
 
 __version__ = '$Revision$'
+# $Source$
+# $Id$
 
 import os, sys
 import string
@@ -236,9 +238,7 @@
                      sensitive = _has_selected_shape_layer))
 
 # find the extensions menu (create it anew if not found)
-extensions_menu = main_menu.find_menu('extensions')
-if extensions_menu is None:
-    extensions_menu = main_menu.InsertMenu('extensions', _('E&xtensions'))
+extensions_menu = main_menu.FindOrInsertMenu('extensions', _('E&xtensions'))
 
 # finally add the new entry to the extensions menu
 extensions_menu.InsertItem('bboxdump')





More information about the Thuban-devel mailing list

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