[GRASS-SVN] r38276 - grass/trunk/scripts/g.extension
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jul 5 15:59:36 EDT 2009
Author: martinl
Date: 2009-07-05 15:59:35 -0400 (Sun, 05 Jul 2009)
New Revision: 38276
Modified:
grass/trunk/scripts/g.extension/g.extension.py
Log:
g.extension: updating wxGUI menu is not implemeted yet
Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py 2009-07-05 19:45:44 UTC (rev 38275)
+++ grass/trunk/scripts/g.extension/g.extension.py 2009-07-05 19:59:35 UTC (rev 38276)
@@ -165,9 +165,9 @@
'install'])
if ret != 0:
- grass.fatal('Installation failed, sorry. Please check above error messages.')
-
- grass.message("Installation of '%s' successfully finished." % module)
+ grass.warning('Installation failed, sorry. Please check above error messages.')
+ else:
+ grass.message("Installation of '%s' successfully finished." % module)
def remove_extension(gisbase, module):
# is module available?
@@ -182,6 +182,13 @@
grass.message("'%s' successfully uninstalled." % module)
+def update_menu(menuitem, module, operation):
+ grass.warning('Not implemented')
+ if operation == 'add':
+ pass
+ else: # remove
+ pass
+
def main():
# check dependecies
check()
@@ -204,7 +211,10 @@
install_extension(options['svnurl'], gisbase, module)
else: # remove
remove_extension(gisbase, module)
-
+
+ if options['menuitem']:
+ update_menu(options['menuitem'], module, options['operation'])
+
return 0
if __name__ == "__main__":
More information about the grass-commit
mailing list