On 21/01/08 04:47, GRASS-trac wrote:
#7: Location wizard: should predefine DB connection for new location
----------------------+-----------------------------------------------------
Reporter: neteler | Owner: [email protected]
Type: defect | Status: new
Priority: major | Milestone: 6.3.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Comment (by hamish):
For fixing C modules it should be as hard as testing a return value and
calling G_fatal_error() with "DB unset. Please run db.select".
For scripts it should be as simple as either calling db.select in the
script if unset or just letting the C module's G_fatal_error() spit out
the appropriate error.
I imagine you mean db.connect instead of db.select...
Moritz
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev