[snowy] Modify to work under RedHat/CentOS 5.3, with Python 2.4.3.
- From: Brad Taylor <btaylor src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [snowy] Modify to work under RedHat/CentOS 5.3, with Python 2.4.3.
- Date: Fri, 14 Aug 2009 11:50:12 +0000 (UTC)
commit 6e53260e3dd42e633e5fb43edee2e992e47cdcd9
Author: Andy Duplain <trojanfoe googlemail com>
Date: Tue Aug 11 07:50:51 2009 +0100
Modify to work under RedHat/CentOS 5.3, with Python 2.4.3.
Signed-off-by: Brad Taylor <brad getcoded net>
INSTALL | 7 ++++++-
README | 13 ++++++++++++-
accounts/middleware.py | 2 +-
lib/piston/utils.py | 5 ++++-
4 files changed, 23 insertions(+), 4 deletions(-)
---
diff --git a/INSTALL b/INSTALL
index 57c21bb..afbfafe 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,9 +1,14 @@
Running Snowy From Your Git Checkout
--
0. Install python-libxslt, python-libxml2, python-pytz, and python-sqlite,
- python-dateutil, python-pkg-resources
+ python-dateutil, python-pkg-resources, python-uuid
(package names somewhat different from distro to distro).
+ Package names for RedHat/CentOS 5.3:
+
+ python-lxml, python-tz, python-sqlite2, python-dateutil, python-setuptools,
+ python-uuid, python-simplejson
+
1. Install django from SVN:
svn co http://code.djangoproject.com/svn/django/trunk/ django
cd django && sudo python setup.py install
diff --git a/README b/README
index b92e067..2102741 100644
--- a/README
+++ b/README
@@ -4,8 +4,19 @@ Snowy is a web-based viewer for your Tomboy notes written in Django.
Requirements
=================
- * Python 2.6
+ * Python >= 2.4
- python-libxslt
- python-libxml2
- python-pytz
- python-sqlite
+
+Under RedHat/CentOS 5.3, these packages are:
+
+ - python-lxml
+ - python-tz
+ - python-sqlite2
+ - python-dateutil
+ - python-setuptools
+ - python-uuid
+ - python-simplejson
+
diff --git a/accounts/middleware.py b/accounts/middleware.py
index 963854f..e4bf2db 100644
--- a/accounts/middleware.py
+++ b/accounts/middleware.py
@@ -18,7 +18,7 @@
from django.middleware.common import CommonMiddleware
from django.utils import translation
-class LocaleMiddleware():
+class LocaleMiddleware:
def process_view(self, request, view_func, view_args, view_kwargs):
if request.user.is_authenticated():
profile = request.user.get_profile()
diff --git a/lib/piston/utils.py b/lib/piston/utils.py
index a992ef2..62eeb37 100644
--- a/lib/piston/utils.py
+++ b/lib/piston/utils.py
@@ -1,4 +1,7 @@
-from functools import wraps
+try:
+ from functools import wraps
+except ImportError:
+ from django.utils.functional import wraps # Python 2.3, 2.4 fallback
from django.http import HttpResponseNotAllowed, HttpResponseForbidden, HttpResponse
from django.core.urlresolvers import reverse
from django.core.cache import cache
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]