# HG changeset patch # User ymh # Date 1307755818 -7200 # Node ID 7aad42e75285ee9b7809dbec7d0688e4a66843ad # Parent 62df01506d366a72063a6b16dc825b00a38cd126 reformat code diff -r 62df01506d36 -r 7aad42e75285 web/hdabo/management/commands/importcsv.py --- a/web/hdabo/management/commands/importcsv.py Sat Jun 11 03:21:09 2011 +0200 +++ b/web/hdabo/management/commands/importcsv.py Sat Jun 11 03:30:18 2011 +0200 @@ -9,7 +9,7 @@ from django.core.management.base import BaseCommand, CommandError from django.db import transaction -from hdabo.models import (Author, Datasheet, DocumentFormat, Domain, Organisation, +from hdabo.models import (Author, Datasheet, DocumentFormat, Domain, Organisation, Tag, TaggedSheet, TimePeriod, Location) from optparse import make_option import csv diff -r 62df01506d36 -r 7aad42e75285 web/hdabo/modwsgi.wsgi --- a/web/hdabo/modwsgi.wsgi Sat Jun 11 03:21:09 2011 +0200 +++ b/web/hdabo/modwsgi.wsgi Sat Jun 11 03:30:18 2011 +0200 @@ -15,7 +15,7 @@ sys.path.append(environ['PROJECT_PATH']) for path in environ.get('PYTHON_PATH', "").split(os.pathsep): if path: - site.addsitedir(path) + site.addsitedir(path) #@UndefinedVariable new_sys_path = [] for item in list(sys.path): diff -r 62df01506d36 -r 7aad42e75285 web/hdabo/views.py --- a/web/hdabo/views.py Sat Jun 11 03:21:09 2011 +0200 +++ b/web/hdabo/views.py Sat Jun 11 03:30:18 2011 +0200 @@ -77,7 +77,7 @@ #@login_required def TagUpDown(request): ds_id = request.POST["datasheet_id"] - tag_id = request.POST["tag_id"] + #tag_id = request.POST["tag_id"] # tag_pos indicates the position (from 0) of the tag in the list. NB : it is different from the TagSheet.order in the database. tag_pos = int(request.POST["tag_pos"]) # move can be "u" or "d", for up and down