Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit f826351d authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Rename the method Automaton.check_collaboration to get_create_collaboration.

parent 7f717b16
......@@ -247,7 +247,7 @@ class Articles(Automaton):
id_publisher = self.check_publisher(editor)
# check the collaboration
id_collaboration = self.check_collaboration(record.collaboration())
id_collaboration = self.get_create_collaboration(record.collaboration())
# check against already published articles or preprint
# A preprint is transform itno an article.
......
......@@ -334,8 +334,9 @@ class Automaton(object):
self.logs[-1].idle(MSG_IN_DB, kwargs["year"])
return (rec_id, 0)
def check_collaboration(self, value):
"""Check that the collaboration exit in the database, create it if not.
def get_create_collaboration(self, value):
"""Get the database collaboration identifier.
Create it, if if does not exist.
@type value: str or None
@param value: the name of the collaboration.
......
......@@ -96,7 +96,7 @@ class Preprints(Automaton):
year = record.year()
# check the collaboration
id_collaboration = self.check_collaboration(record.collaboration())
id_collaboration = self.get_create_collaboration(record.collaboration())
# check against preprint or article already published
rec_id, status = self.check_by_fields(first_author=first_author,
......
......@@ -98,7 +98,7 @@ class Proceedings(Automaton):
id_country = get_id(db.countries, country=record.conference_country())
# check the collaboration
id_collaboration = self.check_collaboration(record.collaboration())
id_collaboration = self.get_create_collaboration(record.collaboration())
# check the publisher
id_publisher = self.check_publisher(editor)
......
......@@ -88,7 +88,7 @@ class Reports(Automaton):
id_status = get_id(db.status, code=UNKNOWN)
# check the collaboration
id_collaboration = self.check_collaboration(record.collaboration())
id_collaboration = self.get_create_collaboration(record.collaboration())
# check against already published reports
rec_id, status = self.check_by_fields(id_categories=self.id_category,
......
......@@ -81,7 +81,7 @@ class Talks(Automaton):
title = record.title()
# check the collaboration
id_collaboration = self.check_collaboration(record.collaboration())
id_collaboration = self.get_create_collaboration(record.collaboration())
# check against already published talk using fields
rec_id, status = self.check_by_fields(conference_title=conference_title,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment