diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-04-18 15:18:35 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-04-18 15:18:35 -0400 |
commit | 3cb6d424e8995a43d0cf5ba1e2d997712ca82d49 (patch) | |
tree | b539e68918e5fc87788c2a3918a5f37e74af7adc | |
parent | bfe490e8ffcc6a84330aab3b2a1b856ce277c0ca (diff) | |
download | askbot-3cb6d424e8995a43d0cf5ba1e2d997712ca82d49.tar.gz askbot-3cb6d424e8995a43d0cf5ba1e2d997712ca82d49.tar.bz2 askbot-3cb6d424e8995a43d0cf5ba1e2d997712ca82d49.zip |
small python 2.4 compat fix and documentation
-rw-r--r-- | INSTALL | 3 | ||||
-rw-r--r-- | TODO.rst | 2 | ||||
-rw-r--r-- | forum_modules/pgfulltext/management.py | 11 |
3 files changed, 11 insertions, 5 deletions
@@ -66,6 +66,9 @@ http://south.aeracode.org/docs/installation.html Used for database schema and data migrations [sudo] easy_install South +EXTRA DEPENDENCIES FOR PYTHON 2.4 +* hashlib (made standard in python 2.5) + NOTES: django_authopenid is included into Askbot code and is significantly modified. http://code.google.com/p/django-authopenid/ no need to install this library @@ -14,6 +14,8 @@ Code Cleanups inside forum app directory * one-by one convert "auto-discovery" modules into regular explicit python imports +* python2.4 incompatibilities + * datatime.datetime.strptime Bugs ====== diff --git a/forum_modules/pgfulltext/management.py b/forum_modules/pgfulltext/management.py index 487580ff..15ba3bd7 100644 --- a/forum_modules/pgfulltext/management.py +++ b/forum_modules/pgfulltext/management.py @@ -18,11 +18,12 @@ def install_pg_fts(): f = open(os.path.join(os.path.dirname(__file__), 'pg_fts_install.sql'), 'r') try: - cursor = connection.cursor() - cursor.execute(f.read()) - transaction.commit_unless_managed() - except: - pass + try: + cursor = connection.cursor() + cursor.execute(f.read()) + transaction.commit_unless_managed() + except: + pass finally: cursor.close() |