[GRASS-SVN] r60133 - in grass/branches/releasebranch_7_0/lib/python/pygrass: docs gis

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 6 09:44:45 PDT 2014


Author: neteler
Date: 2014-05-06 09:44:44 -0700 (Tue, 06 May 2014)
New Revision: 60133

Modified:
   grass/branches/releasebranch_7_0/lib/python/pygrass/docs/index.rst
   grass/branches/releasebranch_7_0/lib/python/pygrass/docs/intro.rst
   grass/branches/releasebranch_7_0/lib/python/pygrass/gis/__init__.py
Log:
PyGRASS sphinx manual: added gis docs; msg cosmetics

Modified: grass/branches/releasebranch_7_0/lib/python/pygrass/docs/index.rst
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/pygrass/docs/index.rst	2014-05-06 16:44:15 UTC (rev 60132)
+++ grass/branches/releasebranch_7_0/lib/python/pygrass/docs/index.rst	2014-05-06 16:44:44 UTC (rev 60133)
@@ -23,13 +23,13 @@
    :maxdepth: 2
 
    intro
+   gis
    raster
    vector
    attributes
    modules
 
 
-
 Indices and tables
 ==================
 

Modified: grass/branches/releasebranch_7_0/lib/python/pygrass/docs/intro.rst
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/pygrass/docs/intro.rst	2014-05-06 16:44:15 UTC (rev 60132)
+++ grass/branches/releasebranch_7_0/lib/python/pygrass/docs/intro.rst	2014-05-06 16:44:44 UTC (rev 60133)
@@ -1,7 +1,7 @@
 Introduction
 =============
 
-To work with ``pygrass`` you need a up-to-date version of GRASS GIS 7.
+To work with ``pygrass`` you need an up-to-date version of GRASS GIS 7.
 You can obtain a recent version following the information provided on the
 `main Web site <http://grass.osgeo.org/download/software/>`_
 of GRASS, and you can read more about compilation on the 
@@ -11,4 +11,4 @@
 GRASS GIS 7 and from the console launch ``python`` or ``ipython`` 
 (the second one is the recommended way)
 
-Read more about how to work with :doc:`raster`, :doc:`vector`, :doc:`attributes`, :doc:`modules`.
+Read more about how to work with :doc:`gis`, :doc:`raster`, :doc:`vector`, :doc:`attributes`, :doc:`modules`.

Modified: grass/branches/releasebranch_7_0/lib/python/pygrass/gis/__init__.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/pygrass/gis/__init__.py	2014-05-06 16:44:15 UTC (rev 60132)
+++ grass/branches/releasebranch_7_0/lib/python/pygrass/gis/__init__.py	2014-05-06 16:44:44 UTC (rev 60133)
@@ -56,7 +56,7 @@
     elif value is '':
         return getenv(type)
     else:
-        raise GrassError("%s <%s> not found." % (type.title(),
+        raise GrassError("%s <%s> not found" % (type.title(),
                                                  join(path, value)))
 
 
@@ -71,9 +71,9 @@
 def make_mapset(mapset, location=None, gisdbase=None):
     res = libgis.G_make_mapset(gisdbase, location, mapset)
     if res == -1:
-        raise GrassError("I cannot create a new mapset.")
+        raise GrassError("Cannot create new mapset")
     elif res == -2:
-        raise GrassError("Illegal name.")
+        raise GrassError("Illegal name")
 
 
 class Gisdbase(object):
@@ -125,7 +125,7 @@
 
     def new_location(self):
         if libgis.G__make_location() != 0:
-            raise GrassError("I cannot create a new mapset.")
+            raise GrassError("Cannot create new location")
 
     def locations(self):
         """Return a list of locations that are available in the gisdbase: ::



More information about the grass-commit mailing list