DC form changed to support multiple translators and technical_editors.
authorŁukasz Rekucki <lrekucki@gmail.com>
Wed, 2 Sep 2009 13:13:20 +0000 (15:13 +0200)
committerŁukasz Rekucki <lrekucki@gmail.com>
Wed, 2 Sep 2009 13:13:20 +0000 (15:13 +0200)
apps/explorer/forms.py
apps/explorer/views.py

index 4946be6..910db54 100644 (file)
@@ -67,9 +67,9 @@ class DublinCoreForm(forms.Form):
     created_at = forms.DateField()
     released_to_public_domain_at = forms.DateField()
     editors = PersonListField(widget=forms.Textarea, required=False)
     created_at = forms.DateField()
     released_to_public_domain_at = forms.DateField()
     editors = PersonListField(widget=forms.Textarea, required=False)
-    translator = PersonField(required=False)
-    technical_editor = PersonField(required=False)
-    publisher = PersonField()
+    translators = PersonListField(widget=forms.Textarea, required=False)
+    technical_editors = PersonListField(widget=forms.Textarea, required=False)
+    publisher = forms.CharField()
     source_name = forms.CharField(widget=forms.Textarea)
     source_url = forms.URLField(verify_exists=False)
     url = forms.URLField(verify_exists=False)
     source_name = forms.CharField(widget=forms.Textarea)
     source_url = forms.URLField(verify_exists=False)
     url = forms.URLField(verify_exists=False)
index 1f53771..19582e2 100644 (file)
@@ -212,7 +212,6 @@ def dceditor_panel(request, path, repo):
         doc_text = repo.get_file(path, user_branch)
         document = parser.WLDocument.from_string(doc_text)
         form = forms.DublinCoreForm(info=document.book_info)       
         doc_text = repo.get_file(path, user_branch)
         document = parser.WLDocument.from_string(doc_text)
         form = forms.DublinCoreForm(info=document.book_info)       
-        print "FORM: ", form
         return direct_to_template(request, 'explorer/panels/dceditor.html', extra_context={
             'fpath': path,
             'form': form,
         return direct_to_template(request, 'explorer/panels/dceditor.html', extra_context={
             'fpath': path,
             'form': form,