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
Open sidebar
limbra
limbra
Commits
4708a0d2
Commit
4708a0d2
authored
Oct 06, 2015
by
LE GAC Renaud
Browse files
Deploy new Msg.reject in automatons.
parent
3254fa10
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
22 additions
and
22 deletions
+22
-22
modules/harvest_tools/articles.py
modules/harvest_tools/articles.py
+3
-3
modules/harvest_tools/automaton.py
modules/harvest_tools/automaton.py
+1
-1
modules/harvest_tools/notes.py
modules/harvest_tools/notes.py
+2
-2
modules/harvest_tools/preprints.py
modules/harvest_tools/preprints.py
+6
-6
modules/harvest_tools/proceedings.py
modules/harvest_tools/proceedings.py
+2
-2
modules/harvest_tools/reports.py
modules/harvest_tools/reports.py
+3
-3
modules/harvest_tools/talks.py
modules/harvest_tools/talks.py
+2
-2
modules/harvest_tools/thesis.py
modules/harvest_tools/thesis.py
+3
-3
No files found.
modules/harvest_tools/articles.py
View file @
4708a0d2
...
...
@@ -53,7 +53,7 @@ class Articles(Automaton):
self
.
check
.
clean_erratum
(
record
)
if
not
record
.
is_published
():
self
.
logs
[
-
1
].
reject
(
MSG_NO_EDITOR
,
record
.
year
()
)
self
.
logs
[
-
1
].
reject
(
MSG_NO_EDITOR
,
record
=
record
)
return
False
self
.
check
.
format_editor
(
record
)
...
...
@@ -67,11 +67,11 @@ class Articles(Automaton):
self
.
check
.
get_my_authors
(
record
,
family_name_fr
)
except
CheckException
as
e
:
self
.
logs
[
-
1
].
reject
(
e
,
record
.
year
()
)
self
.
logs
[
-
1
].
reject
(
e
,
record
=
record
)
return
False
except
Exception
as
e
:
self
.
logs
[
-
1
].
reject
(
MSG_CRASH
%
e
,
record
.
year
()
,
translate
=
False
)
self
.
logs
[
-
1
].
reject
(
MSG_CRASH
%
e
,
record
=
record
,
translate
=
False
)
print
traceback
.
format_exc
()
return
False
...
...
modules/harvest_tools/automaton.py
View file @
4708a0d2
...
...
@@ -368,7 +368,7 @@ class Automaton(object):
self
.
check
.
collaboration
(
record
)
except
Exception
as
e
:
self
.
logs
[
-
1
].
reject
(
e
,
record
.
year
()
)
self
.
logs
[
-
1
].
reject
(
e
,
record
=
record
)
return
False
return
True
...
...
modules/harvest_tools/notes.py
View file @
4708a0d2
...
...
@@ -40,11 +40,11 @@ class Notes(Automaton):
self
.
check
.
get_my_authors
(
record
,
family_name_fr
)
except
CheckException
as
e
:
self
.
logs
[
-
1
].
reject
(
e
,
record
.
year
()
)
self
.
logs
[
-
1
].
reject
(
e
,
record
=
record
)
return
False
except
Exception
as
e
:
self
.
logs
[
-
1
].
reject
(
MSG_CRASH
%
e
,
record
.
year
()
,
translate
=
False
)
self
.
logs
[
-
1
].
reject
(
MSG_CRASH
%
e
,
record
=
record
,
translate
=
False
)
print
traceback
.
format_exc
()
return
False
...
...
modules/harvest_tools/preprints.py
View file @
4708a0d2
...
...
@@ -39,19 +39,19 @@ class Preprints(Automaton):
print
"check preprint record"
if
record
.
is_published
():
self
.
logs
[
-
1
].
reject
(
MSG_PREPRINT_IS_PAPER
,
record
.
year
()
)
self
.
logs
[
-
1
].
reject
(
MSG_PREPRINT_IS_PAPER
,
record
=
record
)
return
False
if
isinstance
(
record
,
RecordConf
):
self
.
logs
[
-
1
].
reject
(
MSG_PREPRINT_IS_CONFERENCE
,
record
.
year
()
)
self
.
logs
[
-
1
].
reject
(
MSG_PREPRINT_IS_CONFERENCE
,
record
=
record
)
return
False
if
isinstance
(
record
,
RecordThesis
):
self
.
logs
[
-
1
].
reject
(
MSG_PREPRINT_IS_THESIS
,
record
.
year
()
)
self
.
logs
[
-
1
].
reject
(
MSG_PREPRINT_IS_THESIS
,
record
=
record
)
return
False
if
not
record
.
preprint_number
():
self
.
logs
[
-
1
].
reject
(
MSG_PREPRINT_NO_NUMBER
,
record
.
year
()
)
self
.
logs
[
-
1
].
reject
(
MSG_PREPRINT_NO_NUMBER
,
record
=
record
)
return
False
try
:
...
...
@@ -62,11 +62,11 @@ class Preprints(Automaton):
self
.
check
.
get_my_authors
(
record
,
family_name_fr
)
except
CheckException
as
e
:
self
.
logs
[
-
1
].
reject
(
e
,
record
.
year
()
)
self
.
logs
[
-
1
].
reject
(
e
,
record
=
record
)
return
False
except
Exception
as
e
:
self
.
logs
[
-
1
].
reject
(
MSG_CRASH
%
e
,
record
.
year
()
,
translate
=
False
)
self
.
logs
[
-
1
].
reject
(
MSG_CRASH
%
e
,
record
=
record
,
translate
=
False
)
print
traceback
.
format_exc
()
return
False
...
...
modules/harvest_tools/proceedings.py
View file @
4708a0d2
...
...
@@ -49,11 +49,11 @@ class Proceedings(Automaton):
self
.
check
.
get_my_authors
(
record
,
family_name_fr
)
except
CheckException
as
e
:
self
.
logs
[
-
1
].
reject
(
e
,
record
.
year
()
)
self
.
logs
[
-
1
].
reject
(
e
,
record
=
record
)
return
False
except
Exception
as
e
:
self
.
logs
[
-
1
].
reject
(
MSG_CRASH
%
e
,
record
.
year
()
,
translate
=
False
)
self
.
logs
[
-
1
].
reject
(
MSG_CRASH
%
e
,
record
=
record
,
translate
=
False
)
print
traceback
.
format_exc
()
return
False
...
...
modules/harvest_tools/reports.py
View file @
4708a0d2
...
...
@@ -36,7 +36,7 @@ class Reports(Automaton):
print
"check report record"
if
not
record
.
report_number
():
self
.
logs
[
-
1
].
reject
(
MSG_REPORT_NO_NUMBER
,
record
.
year
()
)
self
.
logs
[
-
1
].
reject
(
MSG_REPORT_NO_NUMBER
,
record
=
record
)
return
False
try
:
...
...
@@ -47,11 +47,11 @@ class Reports(Automaton):
self
.
check
.
get_my_authors
(
record
,
family_name_fr
)
except
CheckException
as
e
:
self
.
logs
[
-
1
].
reject
(
e
,
record
.
year
()
)
self
.
logs
[
-
1
].
reject
(
e
,
record
=
record
)
return
False
except
Exception
as
e
:
self
.
logs
[
-
1
].
reject
(
MSG_CRASH
%
e
,
record
.
year
()
,
translate
=
False
)
self
.
logs
[
-
1
].
reject
(
MSG_CRASH
%
e
,
record
=
record
,
translate
=
False
)
print
traceback
.
format_exc
()
return
False
...
...
modules/harvest_tools/talks.py
View file @
4708a0d2
...
...
@@ -44,11 +44,11 @@ class Talks(Automaton):
self
.
check
.
get_my_authors
(
record
,
family_name_fr
)
except
CheckException
as
e
:
self
.
logs
[
-
1
].
reject
(
e
,
record
.
year
()
)
self
.
logs
[
-
1
].
reject
(
e
,
record
=
record
)
return
False
except
Exception
as
e
:
self
.
logs
[
-
1
].
reject
(
MSG_CRASH
%
e
,
record
.
year
()
,
translate
=
False
)
self
.
logs
[
-
1
].
reject
(
MSG_CRASH
%
e
,
record
=
record
,
translate
=
False
)
print
traceback
.
format_exc
()
return
False
...
...
modules/harvest_tools/thesis.py
View file @
4708a0d2
...
...
@@ -43,11 +43,11 @@ class Thesis(Automaton):
self
.
check
.
get_my_authors
(
record
,
family_name_fr
)
except
CheckException
as
e
:
self
.
logs
[
-
1
].
reject
(
e
,
record
.
year
()
)
self
.
logs
[
-
1
].
reject
(
e
,
record
=
record
)
return
False
except
Exception
as
e
:
self
.
logs
[
-
1
].
reject
(
MSG_CRASH
%
e
,
record
.
year
()
,
translate
=
False
)
self
.
logs
[
-
1
].
reject
(
MSG_CRASH
%
e
,
record
=
record
,
translate
=
False
)
print
traceback
.
format_exc
()
return
False
...
...
@@ -57,7 +57,7 @@ class Thesis(Automaton):
if
isinstance
(
record
,
RecordThesis
):
return
True
self
.
logs
[
-
1
].
reject
(
MSG_NO_THESIS
,
record
.
year
()
)
self
.
logs
[
-
1
].
reject
(
MSG_NO_THESIS
,
record
=
record
)
return
False
def
insert_record
(
self
,
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