summaryrefslogtreecommitdiff
path: root/archaeological_context_records
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2012-10-21 01:31:49 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2012-10-21 01:31:49 +0200
commit48eb91979705f9999b724c8e2f960fd7931775c1 (patch)
treeb0ce9167008a2ef608f522680f3d11a0459663e4 /archaeological_context_records
parent5b8c7201eefa8b404afb0cb89b389fd3e8f92899 (diff)
downloadIshtar-48eb91979705f9999b724c8e2f960fd7931775c1.tar.bz2
Ishtar-48eb91979705f9999b724c8e2f960fd7931775c1.zip
Djangoization - Major refactoring (step 7)
Work on archaeological_files wizards
Diffstat (limited to 'archaeological_context_records')
-rw-r--r--archaeological_context_records/models.py7
-rw-r--r--archaeological_context_records/wizards.py3
2 files changed, 6 insertions, 4 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py
index 75653e78e..64772627b 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -143,7 +143,7 @@ class ContextRecord(BaseHistorizedItem, OwnPerms):
return self.short_label()
def short_label(self):
- return JOINT.join([unicode(item) for item in [self.parcel,
+ return settings.JOINT.join([unicode(item) for item in [self.parcel,
self.label] if item])
def full_label(self):
@@ -154,13 +154,14 @@ class ContextRecord(BaseHistorizedItem, OwnPerms):
def _real_label(self):
if not self.parcel.operation.code_patriarche:
return
- return JOINT.join((self.parcel.operation.code_patriarche,
+ return settings.JOINT.join((self.parcel.operation.code_patriarche,
self.label))
def _temp_label(self):
if self.parcel.operation.code_patriarche:
return
- return JOINT.join([unicode(lbl) for lbl in [self.parcel.operation.year,
+ return settings.JOINT.join([unicode(lbl) for lbl in [
+ self.parcel.operation.year,
self.parcel.operation.operation_code,
self.label] if lbl])
diff --git a/archaeological_context_records/wizards.py b/archaeological_context_records/wizards.py
index b14272e16..1fd657bcc 100644
--- a/archaeological_context_records/wizards.py
+++ b/archaeological_context_records/wizards.py
@@ -73,7 +73,8 @@ class RecordWizard(Wizard):
else:
data = {}
if not step:
- step = self.determine_step(request, storage)
+ step = self.steps.current
+ #step = self.determine_step(request, storage)
form = self.get_form_list(request, storage)[step]
general_form_key = 'general-' + self.url_name