summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-04-18 15:18:35 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-04-18 15:18:35 -0400
commit3cb6d424e8995a43d0cf5ba1e2d997712ca82d49 (patch)
treeb539e68918e5fc87788c2a3918a5f37e74af7adc
parentbfe490e8ffcc6a84330aab3b2a1b856ce277c0ca (diff)
downloadaskbot-3cb6d424e8995a43d0cf5ba1e2d997712ca82d49.tar.gz
askbot-3cb6d424e8995a43d0cf5ba1e2d997712ca82d49.tar.bz2
askbot-3cb6d424e8995a43d0cf5ba1e2d997712ca82d49.zip
small python 2.4 compat fix and documentation
-rw-r--r--INSTALL3
-rw-r--r--TODO.rst2
-rw-r--r--forum_modules/pgfulltext/management.py11
3 files changed, 11 insertions, 5 deletions
diff --git a/INSTALL b/INSTALL
index fbc9c7b4..1eb9607c 100644
--- a/INSTALL
+++ b/INSTALL
@@ -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
diff --git a/TODO.rst b/TODO.rst
index ba6dbdd2..f202a3f7 100644
--- a/TODO.rst
+++ b/TODO.rst
@@ -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()