tolto stampe

This commit is contained in:
antifaz 2013-08-28 00:20:54 +02:00
parent f5d9786222
commit 8a42ef96dd

View file

@ -17,18 +17,15 @@ class ConnHandler(SocketServer.BaseRequestHandler):
self.data = self.request.recv(1024).strip()
logging.debug("DATA: %s - %s" % (self.client_address[0], self.data) )
# asjson = "[{name: 'Nome', starttime: 'StartTime', endtime: 'EndTime'}]"
# asjson = '[{"name": "Nome", "starttime": "StarTTTIME", "endtime": "EndTme"}]'
# print "JSon example", asjson
print "Data", self.data
print "DATA U", unicode( self.data )
tmp = Rec(asjson=self.data)
print "Creato REC: ", tmp
if tmp.err():
respmsg = "Data ERROR"
else:
respmsg = "OK"
logging.debug("Created REC %s" % tmp)
self.db.add( tmp )
self.db.printall()