Ticket #900: 900.1.patch
File 900.1.patch, 1.2 KB (added by , 19 years ago) |
---|
-
db/backends/postgresql.py
45 45 return self.connection.rollback() 46 46 47 47 def close(self): 48 pass 49 50 def cleanup(self): 48 51 if self.connection is not None: 49 52 self.connection.close() 50 self.connection = None51 53 52 54 def quote_name(self, name): 53 55 if name.startswith('"') and name.endswith('"'): -
handlers/modpython.py
11 11 def __init__(self, req): 12 12 self._req = req 13 13 self.path = req.uri 14 req.server.register_cleanup(req,self._server_cleanup) 14 15 16 def _server_cleanup(self,data): 17 from django.core import db 18 if hasattr(db.db,'cleanup'): 19 db.db.cleanup() 20 15 21 def __repr__(self): 16 22 return '<ModPythonRequest\npath:%s,\nGET:%s,\nPOST:%s,\nCOOKIES:%s,\nMETA:%s,\nuser:%s>' % \ 17 23 (self.path, pformat(self.GET), pformat(self.POST), pformat(self.COOKIES),