Mercurial > hg > ChinaGisRestApi
changeset 71:6f7f8dee6cd2
working on maps
nicer HTML (with xhtml DTD)
better unicode handling for psycopg
author | casties |
---|---|
date | Tue, 23 Nov 2010 17:23:10 +0100 |
parents | 9ec7e32e8ad3 |
children | 825a92d0ab10 |
files | RestDbInterface.py |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/RestDbInterface.py Tue Nov 23 17:16:25 2010 +0100 +++ b/RestDbInterface.py Tue Nov 23 17:23:10 2010 +0100 @@ -21,11 +21,6 @@ from zope.interface import implements from zope.publisher.interfaces import IPublishTraverse from ZPublisher.BaseRequest import DefaultPublishTraverse -#from zope.publisher.interfaces import NotFound -#from zope.app import zapi -#from zope.component import queryMultiAdapter -import Shared.DC.ZRDB.DA -from Products.ZSQLMethods.SQL import SQLConnectionIDs def unicodify(s,alternate='latin-1'): @@ -197,8 +192,8 @@ # get all data in an array data = cur.fetchall() cur.close() - logging.debug("fields: %s"%repr(fields)) - logging.debug("rows: %s"%repr(data)) + #logging.debug("fields: %s"%repr(fields)) + #logging.debug("rows: %s"%repr(data)) return {"fields":fields, "rows":data} else: cur.close()