From 2838c574f8669f4dbdedbc4f283f27c20914b8a9 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 3 Apr 2019 19:55:01 -0700 Subject: forms.py: annotate static methods --- python/fatcat_web/forms.py | 3 +++ 1 file changed, 3 insertions(+) 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. -- cgit v1.2.3