projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fffc5dc
)
Set up the metadata editor forms
author
tilly-Q
<nattilypigeonfowl@gmail.com>
Tue, 6 May 2014 16:54:08 +0000
(12:54 -0400)
committer
tilly-Q
<nattilypigeonfowl@gmail.com>
Tue, 6 May 2014 16:54:08 +0000
(12:54 -0400)
mediagoblin/edit/forms.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/edit/forms.py
b/mediagoblin/edit/forms.py
index cff3a53f6988be28529439e351776f3307acbde5..6cc7a9cb296f01d7725740eba09916177fd8e2e6 100644
(file)
--- a/
mediagoblin/edit/forms.py
+++ b/
mediagoblin/edit/forms.py
@@
-123,7
+123,13
@@
class ChangeEmailForm(wtforms.Form):
description=_(
"Enter your password to prove you own this account."))
+class MetaDataForm(wtforms.Form):
+ identifier = wtforms.TextField(
+ _(u'Id'))
+ value = wtforms.TextField(
+ _(u'Value'))
+
class EditMetaDataForm(wtforms.Form):
media_metadata = wtforms.FieldList(
- wtforms.
TextField(
-
_(u'Value'))
)
+ wtforms.
FormField(MetaDataForm)
+ )