Changes between Version 7 and Version 8 of Submitting/Python
- Timestamp:
- 06/23/14 17:13:04 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Submitting/Python
v7 v8 182 182 {{{ 183 183 #!python 184 # normal message:184 # normal message: 185 185 grass.message(_("Done")) 186 187 # verbose message: 188 grass.verbose(_("Computation finished successfully")) 186 189 187 190 # warning: … … 192 195 193 196 # fatal error: 197 # prints error and exits or raises exception (use set_raise_on_error to set the behavior) 194 198 grass.fatal_error("No map found, exiting") 195 199 196 200 # debug output (use g.gisenv to enable/disable) 197 grass.debug(_("Our calculated value is: %d" % value)) 201 # debug level is 1 to 5 (5 is most detailed) 202 grass.debug(_("Our calculated value is: %d" % value), 3) 198 203 }}} 199 204