From e392aaad462a793a952eb1a9f1e30ed7e0ba943d Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 19 Feb 2012 16:08:14 +0530 Subject: [PATCH] edited requirements - correct python-ox path; remove South --- README | 1 + gazetteer/places/models.py | 1 - gazetteer/places/views.py | 2 +- requirements.txt | 3 +-- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README b/README index f1e2936..6eaf099 100644 --- a/README +++ b/README @@ -17,6 +17,7 @@ Get: # bzr branch PUBLIC_URL gazetteer cd gazetteer virtualenv . + . bin/activate pip -E . install -r requirements.txt Patch: diff --git a/gazetteer/places/models.py b/gazetteer/places/models.py index c395417..1bb91b1 100644 --- a/gazetteer/places/models.py +++ b/gazetteer/places/models.py @@ -6,7 +6,6 @@ try: except: import simplejson as json -# Create your models here. class AuthorityRecord(models.Model): uri = models.CharField(max_length=512) diff --git a/gazetteer/places/views.py b/gazetteer/places/views.py index 380b287..9921bff 100644 --- a/gazetteer/places/views.py +++ b/gazetteer/places/views.py @@ -116,7 +116,7 @@ def add_relation(request): feature1 = request.GET.get("feature1", None) feature2 = request.GET.get("feature2", None) relation = request.GET.get("relation", None) - if feature1 == None or feature2 == None or relation == None: #TODO: split up errors :/ -- not imp. + if feature1 == None or feature2 == None or relation == None: return render_to_json_response({'error': 'bad request'}) if not request.user.is_staff: diff --git a/requirements.txt b/requirements.txt index 0b85732..e4bc65b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ -e svn+http://code.djangoproject.com/svn/django/branches/releases/1.3.X/#egg=django --e bzr+http://code.0xdb.org/python-ox/#egg=python-ox +-e bzr+http://code.0x2620.org/python-ox/#egg=python-ox django_extensions -South django_debug_toolbar django-ajax-selects