# HG changeset patch # User casties # Date 1282125258 -7200 # Node ID 060797795a4d228c6f68e8065dcac25baab7099e # Parent ed997e639cfd2de1acee40da949f4301fbc0de94 work on json return values diff -r ed997e639cfd -r 060797795a4d RestDbInterface.py --- a/RestDbInterface.py Tue Aug 17 11:16:16 2010 +0200 +++ b/RestDbInterface.py Wed Aug 18 11:54:18 2010 +0200 @@ -10,6 +10,7 @@ import logging import re import psycopg2 +import json from zope.interface import implements from zope.publisher.interfaces import IPublishTraverse @@ -214,7 +215,8 @@ logging.debug("put with schema=%s table=%s file=%s"%(schema,tablename,file)) ret = self.createTableFromXML(schema, tablename, file) - + # set content type to json(?) + json.dump(ret, RESPONSE) else: # 400 Bad Request