File tree Expand file tree Collapse file tree
src/hermes/commands/curate Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class AcceptCuratePlugin(BaseCuratePlugin):
1919 also copies the metadata produced in the process step to the "curate" directory.
2020 """
2121
22- def get_decision (self ):
22+ def is_publication_approved (self ):
2323 """Simulate positive curation result."""
2424 return True
2525
Original file line number Diff line number Diff line change @@ -38,14 +38,14 @@ def __call__(self, command: HermesCommand) -> None:
3838 """Entry point of the callable.
3939
4040 This method runs the main logic of the plugin. It calls the other methods of the
41- object in the correct order. Depending on the result of ``get_decision`` the
42- corresponding ``process_decision_*()`` method is called, based on the curation
43- decision.
41+ object in the correct order. Depending on the result of
42+ ``is_publication_approved`` the corresponding ``process_decision_*()`` method is
43+ called, based on the curation decision.
4444 """
4545 self .prepare ()
4646 self .validate ()
4747 self .create_report ()
48- if self .get_decision ():
48+ if self .is_publication_approved ():
4949 self .process_decision_positive ()
5050 else :
5151 self .process_decision_negative ()
@@ -73,7 +73,7 @@ def create_report(self):
7373 """
7474 pass
7575
76- def get_decision (self ) -> bool :
76+ def is_publication_approved (self ) -> bool :
7777 """Return the publication decision made through the curation process.
7878
7979 If publication is allowed, this method must return ``True``. By default,
You can’t perform that action at this time.
0 commit comments