Changes between Version 7 and Version 8 of Submitting/Python


Ignore:
Timestamp:
06/23/14 17:13:04 (10 years ago)
Author:
annakrat
Comment:

improve Messages

Legend:

Unmodified
Added
Removed
Modified
  • Submitting/Python

    v7 v8  
    182182{{{
    183183#!python
    184 #normal message:
     184# normal message:
    185185grass.message(_("Done"))
     186
     187# verbose message:
     188grass.verbose(_("Computation finished successfully"))
    186189
    187190# warning:
     
    192195
    193196# fatal error:
     197# prints error and exits or raises exception (use set_raise_on_error to set the behavior)
    194198grass.fatal_error("No map found, exiting")
    195199
    196200# 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)
     202grass.debug(_("Our calculated value is: %d" % value), 3)
    198203}}}
    199204