~ubuntu-branches/ubuntu/quantal/python-django/quantal-security

« back to all changes in this revision

Viewing changes to django/db/backends/postgresql/base.py

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2010-10-12 11:34:35 UTC
  • mfrom: (4.4.9 sid)
  • mto: This revision was merged to the branch mainline in revision 30.
  • Revision ID: james.westby@ubuntu.com-20101012113435-5rk3p18nyanuhj6g
* SECURITY UPDATE: XSS in CSRF protections. New upstream release
  - CVE-2010-3082
* debian/patches/01_disable_url_verify_regression_tests.diff:
  - updated to disable another test that fails without internet connection
  - patch based on work by Kai Kasurinen and Krzysztof Klimonda
* debian/control: don't Build-Depends on locales-all, which doesn't exist
  in maverick

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
            if settings_dict['PORT']:
136
136
                conn_string += " port=%s" % settings_dict['PORT']
137
137
            self.connection = Database.connect(conn_string, **settings_dict['OPTIONS'])
138
 
            self.connection.set_isolation_level(1) # make transactions transparent to all cursors
139
 
            connection_created.send(sender=self.__class__)
 
138
            # make transactions transparent to all cursors
 
139
            self.connection.set_isolation_level(1)
 
140
            connection_created.send(sender=self.__class__, connection=self)
140
141
        cursor = self.connection.cursor()
141
142
        if new_connection:
142
143
            if set_tz: