From d86dff8c7b9cf73bb13d3e64de7d0fb93a3f48d1 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 24 Oct 2011 03:03:12 +0100 Subject: [PATCH] script archive basics --- itf/scriptbank/models.py | 23 +++++++++++++++++++ .../modules/script-archive/licenses.html | 5 ---- .../modules/script-archive/scripts.html | 8 ------- itf/templates/modules/scriptbank/script.html | 3 +++ 4 files changed, 26 insertions(+), 13 deletions(-) delete mode 100755 itf/templates/modules/script-archive/licenses.html delete mode 100755 itf/templates/modules/script-archive/scripts.html create mode 100644 itf/templates/modules/scriptbank/script.html diff --git a/itf/scriptbank/models.py b/itf/scriptbank/models.py index 3e06ddf..068a104 100755 --- a/itf/scriptbank/models.py +++ b/itf/scriptbank/models.py @@ -47,6 +47,29 @@ class Script(ItfModel): def __unicode__(self): return self.title + def list_dict(self): + return { + 'id': self.id, + 'title': self.title, + } + + def info_dict(self): + return { + 'title': self.title, + 'synopsis': self.synopsis, + 'no_characters': self.no_characters, + 'no_of_women': self.no_of_women, + 'production_notes': self.production_notes, + 'language': self.language, + 'approx_duration': self.approx_duration, + 'is_partial': self.is_partial, + 'author': self.author, + 'contact': self.contact, + 'script_file': self.script.url, + 'license_adapt': self.license_adapt, + 'license_perform': self.license_perform + } + ''' @classmethod def get_list(kls, data): diff --git a/itf/templates/modules/script-archive/licenses.html b/itf/templates/modules/script-archive/licenses.html deleted file mode 100755 index 1677b85..0000000 --- a/itf/templates/modules/script-archive/licenses.html +++ /dev/null @@ -1,5 +0,0 @@ -
Dummy text for licenses
-
- Download PDF - Download PDF -
diff --git a/itf/templates/modules/script-archive/scripts.html b/itf/templates/modules/script-archive/scripts.html deleted file mode 100755 index c5a59c1..0000000 --- a/itf/templates/modules/script-archive/scripts.html +++ /dev/null @@ -1,8 +0,0 @@ -
- - - -
- -
Dummy title
-
Dummy text
diff --git a/itf/templates/modules/scriptbank/script.html b/itf/templates/modules/scriptbank/script.html new file mode 100644 index 0000000..400d9b8 --- /dev/null +++ b/itf/templates/modules/scriptbank/script.html @@ -0,0 +1,3 @@ +
{{ title }}
+ +Synopsis: {{ synopsis }}