super(PersonListField, self).__init__(*args, **kwargs)
def _get_initial(self):
- return u'\n'.join( ( unicode(person) for person in self._initial) )
+ return self._initial and (u'\n'.join( ( unicode(person) for person in self._initial)))
def _set_initial(self, value):
if value is None:
try:
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,