[GRASS-SVN] r60024 - grass/trunk/lib/python/temporal
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu May 1 13:20:26 PDT 2014
Author: huhabla
Date: 2014-05-01 13:20:26 -0700 (Thu, 01 May 2014)
New Revision: 60024
Modified:
grass/trunk/lib/python/temporal/c_libraries_interface.py
Log:
Order the mapset names, make the current mapset the first entry in the list
Modified: grass/trunk/lib/python/temporal/c_libraries_interface.py
===================================================================
--- grass/trunk/lib/python/temporal/c_libraries_interface.py 2014-05-01 20:19:54 UTC (rev 60023)
+++ grass/trunk/lib/python/temporal/c_libraries_interface.py 2014-05-01 20:20:26 UTC (rev 60024)
@@ -69,8 +69,17 @@
char_list += mapset[c]
c += 1
- mapset_list.append(char_list)
+ mapset_list.append(char_list)
+ # We need to sort the mapset list, but the first one should be
+ # the current mapset
+ current_mapset = libgis.G_mapset()
+ mapset_list.remove(current_mapset)
+ mapset_list.sort()
+ mapset_list.reverse()
+ mapset_list.append(current_mapset)
+ mapset_list.reverse()
+
conn.send(mapset_list)
def _has_timestamp(lock, conn, data):
More information about the grass-commit
mailing list