summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-03 19:55:01 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-03 19:55:01 -0700
commit2838c574f8669f4dbdedbc4f283f27c20914b8a9 (patch)
treefc94ac223271cfcc25f99a15cddba4dab8a43be5 /python
parent764664febc2286c41fd2dc98d161cf3375c9bc46 (diff)
downloadfatcat-2838c574f8669f4dbdedbc4f283f27c20914b8a9.tar.gz
fatcat-2838c574f8669f4dbdedbc4f283f27c20914b8a9.zip
forms.py: annotate static methods
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_web/forms.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/fatcat_web/forms.py b/python/fatcat_web/forms.py
index 08c401b7..776812ae 100644
--- a/python/fatcat_web/forms.py
+++ b/python/fatcat_web/forms.py
@@ -109,6 +109,7 @@ class ReleaseEntityForm(EntityEditForm):
#refs
#abstracts
+ @staticmethod
def from_entity(re):
"""
Initializes form with values from an existing release entity.
@@ -187,6 +188,7 @@ class ContainerEntityForm(EntityEditForm):
issnl = StringField("ISSN-L")
wikidata_qid = StringField('Wikidata QID')
+ @staticmethod
def from_entity(re):
"""
Initializes form with values from an existing container entity.
@@ -263,6 +265,7 @@ class FileEntityForm(EntityEditForm):
[validators.DataRequired(),
validators.Length(min=26, max=26)]))
+ @staticmethod
def from_entity(fe):
"""
Initializes form with values from an existing file entity.