[GRASS-SVN] r45984 - grass-addons/grass7/display/d.mon
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 14 19:30:27 EDT 2011
Author: hamish
Date: 2011-04-14 16:30:27 -0700 (Thu, 14 Apr 2011)
New Revision: 45984
Modified:
grass-addons/grass7/display/d.mon/d.mon.html
grass-addons/grass7/display/d.mon/d.mon.py
Log:
refine apache option
Modified: grass-addons/grass7/display/d.mon/d.mon.html
===================================================================
--- grass-addons/grass7/display/d.mon/d.mon.html 2011-04-14 23:22:10 UTC (rev 45983)
+++ grass-addons/grass7/display/d.mon/d.mon.html 2011-04-14 23:30:27 UTC (rev 45984)
@@ -17,7 +17,7 @@
<b>tempfile</b> option. For example, when working remotely with
PuTTY (ssh without tunnelled X) + Apache:
<pre>
- alias d.mon='eval `d.mon.py -b tempfile=/var/www/grass/grassmap.png`'
+ alias d.mon='eval `d.mon.py -b handler=none tempfile=/var/www/grassmap.png`'
</pre>
then just hit reload in your web browser whenever a refresh is needed.
Modified: grass-addons/grass7/display/d.mon/d.mon.py
===================================================================
--- grass-addons/grass7/display/d.mon/d.mon.py 2011-04-14 23:22:10 UTC (rev 45983)
+++ grass-addons/grass7/display/d.mon/d.mon.py 2011-04-14 23:30:27 UTC (rev 45984)
@@ -32,7 +32,7 @@
#% key: handler
#% type: string
#% description: Window program to use
-#% options: ximgview,wximgview,wxpyimgview,qiv
+#% options: ximgview,wximgview,wxpyimgview,qiv,none
#% answer: wximgview
#%End
#%option
@@ -99,7 +99,9 @@
print('export GRASS_PNGFILE GRASS_WIDTH GRASS_HEIGHT GRASS_RENDER_IMMEDIATE GRASS_PNG_MAPPED GRASS_PNG_READ;')
print('d.erase color=%s;' % options['color'])
- if handler == "qiv":
+ if handler == "none":
+ grass.message("Image file is '%s'" % img_tmp)
+ elif handler == "qiv":
print('qiv -T "%s" &' % img_tmp) # add --center ?
else:
print('%s image="%s" percent=%s &' % ( handler, img_tmp, options['percent']) )
More information about the grass-commit
mailing list