Mercurial > hg > ChinaGisRestApi
comparison RestDbInterface.py @ 5:7539a9e69365 api_v1
small fix
author | casties |
---|---|
date | Wed, 16 Jun 2010 11:47:06 +0000 |
parents | e3ee1f358fe6 |
children | bd52d9445a41 |
comparison
equal
deleted
inserted
replaced
4:e3ee1f358fe6 | 5:7539a9e69365 |
---|---|
76 #conn._register() # register with the Zope transaction system | 76 #conn._register() # register with the Zope transaction system |
77 self._v_database_connection = conn | 77 self._v_database_connection = conn |
78 except Exception, e: | 78 except Exception, e: |
79 raise IOError("No database connection! (%s)"%str(e)) | 79 raise IOError("No database connection! (%s)"%str(e)) |
80 | 80 |
81 cursor = conn.getCursor() | 81 cursor = conn.getcursor() |
82 return cursor | 82 return cursor |
83 | 83 |
84 def executeSQL(self, query, *args): | 84 def executeSQL(self, query, *args): |
85 """execute query with args on database and return all results. | 85 """execute query with args on database and return all results. |
86 result format: {"fields":fields, "rows":data}""" | 86 result format: {"fields":fields, "rows":data}""" |