~ubuntu-branches/ubuntu/precise/grass/precise

« back to all changes in this revision

Viewing changes to lib/python/db.py

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-04-13 17:08:41 UTC
  • mfrom: (8.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110413170841-ss1t9bic0d0uq0gz
Tags: 6.4.1-1
* New upstream version.
* Now build-dep on libjpeg-dev and current libreadline6-dev.
* Removed patch swig: obsolete.
* Policy bumped to 3.9.2, without changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
"""!@package grass.script.db
2
2
 
3
 
@brief GRASS Python scripting module
 
3
@brief GRASS Python scripting module (database functions)
4
4
 
5
5
Database related functions to be used in Python scripts.
6
6
 
25
25
 
26
26
from core import *
27
27
 
 
28
# i18N
 
29
import gettext
 
30
gettext.install('grasslibs', os.path.join(os.getenv("GISBASE"), 'locale'), unicode=True)
 
31
 
28
32
def db_describe(table, **args):
29
33
    """!Return the list of columns for a database table
30
34
    (interface to `db.describe -c'). Example: