Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
limbra
limbra
Commits
d2fbe656
Commit
d2fbe656
authored
Jan 29, 2020
by
LE GAC Renaud
Browse files
Update harvest_tools notes, proceedings reports and talks to use logger.
parent
6ac920cb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
8 deletions
+12
-8
modules/harvest_tools/notes.py
modules/harvest_tools/notes.py
+3
-2
modules/harvest_tools/proceedings.py
modules/harvest_tools/proceedings.py
+3
-2
modules/harvest_tools/reports.py
modules/harvest_tools/reports.py
+2
-2
modules/harvest_tools/talks.py
modules/harvest_tools/talks.py
+4
-2
No files found.
modules/harvest_tools/notes.py
View file @
d2fbe656
...
...
@@ -9,6 +9,8 @@ from .base import MSG_CRASH, MSG_LOAD
from
.checkandfix
import
CheckException
from
plugin_dbui
import
UNDEF_ID
T4
=
" "
*
4
class
Notes
(
Automaton
):
"""Automaton for notes.
...
...
@@ -30,8 +32,7 @@ class Notes(Automaton):
if
not
Automaton
.
check_record
(
self
,
record
):
return
False
if
self
.
dbg
:
print
(
"check note record"
)
self
.
logger
.
debug
(
f
"
{
T4
}
check record (note)"
)
try
:
self
.
check
.
submitted
(
record
)
...
...
modules/harvest_tools/proceedings.py
View file @
d2fbe656
...
...
@@ -9,6 +9,8 @@ from .base import MSG_CRASH, MSG_LOAD
from
.checkandfix
import
CheckException
from
plugin_dbui
import
get_id
,
UNDEF_ID
T4
=
" "
*
4
class
Proceedings
(
Automaton
):
"""Automaton for conference proceedings.
...
...
@@ -30,8 +32,7 @@ class Proceedings(Automaton):
if
not
Automaton
.
check_record
(
self
,
record
):
return
False
if
self
.
dbg
:
print
(
"check proceeding record"
)
self
.
logger
.
debug
(
f
"
{
T4
}
check record (proceeding)"
)
try
:
self
.
check
.
is_conference
(
record
)
...
...
modules/harvest_tools/reports.py
View file @
d2fbe656
...
...
@@ -11,6 +11,7 @@ from plugin_dbui import get_id, UNDEF_ID, UNKNOWN
MSG_REPORT_NO_NUMBER
=
"Reject no report number"
T4
=
" "
*
4
class
Reports
(
Automaton
):
...
...
@@ -33,8 +34,7 @@ class Reports(Automaton):
if
not
Automaton
.
check_record
(
self
,
record
):
return
False
if
self
.
dbg
:
print
(
"check report record"
)
self
.
logger
.
debug
(
f
"
{
T4
}
check record (report)"
)
if
not
record
.
report_number
():
self
.
logs
[
-
1
].
reject
(
MSG_REPORT_NO_NUMBER
,
record
=
record
)
...
...
modules/harvest_tools/talks.py
View file @
d2fbe656
...
...
@@ -10,6 +10,9 @@ from .checkandfix import CheckException
from
plugin_dbui
import
get_id
,
UNDEF_ID
T4
=
" "
*
4
class
Talks
(
Automaton
):
"""Automaton for conference talks.
...
...
@@ -30,8 +33,7 @@ class Talks(Automaton):
if
not
Automaton
.
check_record
(
self
,
record
):
return
False
if
self
.
dbg
:
print
(
"check talk record"
)
self
.
logger
.
debug
(
f
"
{
T4
}
check record (talk)"
)
try
:
self
.
check
.
is_conference
(
record
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment