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

Commit 65cee30d authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Break CheckAndFix.conference in CheckAndFix.country,

CheckAndFix.conference_date.
parent dedaecfd
......@@ -168,7 +168,9 @@ def edit_insert():
if selector.controller in ('proceedings', 'talks'):
try:
check.conference(record)
check.country(record)
check.conference_date(record)
except CheckException:
pass
......
......@@ -34,7 +34,8 @@ class Proceedings(Automaton):
try:
self.check.is_conference(record)
self.check.conference(record)
self.check.country(record)
self.check.conference_date(record)
self.check.clean_erratum(record)
self.check.submitted(record)
......
......@@ -34,7 +34,8 @@ class Talks(Automaton):
try:
self.check.is_conference(record)
self.check.conference(record)
self.check.country(record)
self.check.conference_date(record)
self.check.submitted(record)
self.check.year(record)
......
......@@ -355,8 +355,8 @@ class CheckAndFix(object):
if val and not REG_COLLABORATION.match(val):
raise CheckException(MSG_WELL_FORMED_COLLABORATION)
def conference(self, record):
"""check country and conference date
def country(self, record):
"""check conference country.
@type record: L{Record}
@param record:
......@@ -374,6 +374,19 @@ class CheckAndFix(object):
if not id:
raise CheckException(MSG_NO_COUNTRY)
def conference_date(self, record):
"""check conference date.
@type record: L{Record}
@param record:
@raise CheckException:
"""
# conference information are available, i.e proceeding
if not isinstance(record, RecordConf):
return
# check and fix conference date
if not (u"111" in record and "d" in record[u"111"]):
raise CheckException(MSG_NO_CONF_DATE)
......
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