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
7f717b16
Commit
7f717b16
authored
Sep 21, 2015
by
LE GAC Renaud
Browse files
Rename the method Automaton.load_db to insert_record.
parent
b8a7f358
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
18 deletions
+18
-18
modules/harvest_tools/articles.py
modules/harvest_tools/articles.py
+2
-2
modules/harvest_tools/automaton.py
modules/harvest_tools/automaton.py
+4
-4
modules/harvest_tools/notes.py
modules/harvest_tools/notes.py
+2
-2
modules/harvest_tools/preprints.py
modules/harvest_tools/preprints.py
+2
-2
modules/harvest_tools/proceedings.py
modules/harvest_tools/proceedings.py
+2
-2
modules/harvest_tools/reports.py
modules/harvest_tools/reports.py
+2
-2
modules/harvest_tools/talks.py
modules/harvest_tools/talks.py
+2
-2
modules/harvest_tools/thesis.py
modules/harvest_tools/thesis.py
+2
-2
No files found.
modules/harvest_tools/articles.py
View file @
7f717b16
...
...
@@ -217,8 +217,8 @@ class Articles(Automaton):
return
True
def
load_db
(
self
,
record
):
"""
Load
an article in the database.
def
insert_record
(
self
,
record
):
"""
Insert
an article in the database.
The method assume that erratum are removed.
@type record: L{Record}
...
...
modules/harvest_tools/automaton.py
View file @
7f717b16
...
...
@@ -399,8 +399,8 @@ class Automaton(object):
return
True
def
load_db
(
self
,
record
):
"""
Load
the record in the database.
def
insert_record
(
self
,
record
):
"""
Insert
the record in the database.
@note: This method depend on the type of publications.
It has to be implemented for each inherited class.
...
...
@@ -572,8 +572,8 @@ class Automaton(object):
if
self
.
dbg
:
print
"start loading in the database"
#
load
record in the database
self
.
load_db
(
record
)
#
insert the
record in the database
self
.
insert_record
(
record
)
if
self
.
dbg
:
print
self
.
logs
[
-
1
].
action
.
upper
(),
self
.
logs
[
-
1
].
txt
...
...
modules/harvest_tools/notes.py
View file @
7f717b16
...
...
@@ -52,8 +52,8 @@ class Notes(Automaton):
return
True
def
load_db
(
self
,
record
):
"""
Load
a public note in the database.
def
insert_record
(
self
,
record
):
"""
INsert
a public note in the database.
@type record: L{Record}
@param record:
...
...
modules/harvest_tools/preprints.py
View file @
7f717b16
...
...
@@ -74,8 +74,8 @@ class Preprints(Automaton):
return
True
def
load_db
(
self
,
record
):
"""
Load
a preprint in the database.
def
insert_record
(
self
,
record
):
"""
Insert
a preprint in the database.
@type record: L{Record}
@param record:
...
...
modules/harvest_tools/proceedings.py
View file @
7f717b16
...
...
@@ -59,8 +59,8 @@ class Proceedings(Automaton):
return
True
def
load_db
(
self
,
record
):
"""
Load
a conference proceeding in the database.
def
insert_record
(
self
,
record
):
"""
Insert
a conference proceeding in the database.
@type record: L{Record}
@param record:
...
...
modules/harvest_tools/reports.py
View file @
7f717b16
...
...
@@ -55,8 +55,8 @@ class Reports(Automaton):
return
True
def
load_db
(
self
,
record
):
"""
Load
a report in the database.
def
insert_record
(
self
,
record
):
"""
INsert
a report in the database.
@type record: L{Record}
@param record:
...
...
modules/harvest_tools/talks.py
View file @
7f717b16
...
...
@@ -55,8 +55,8 @@ class Talks(Automaton):
return
True
def
load_db
(
self
,
record
):
"""
Load
a conference talk in the database.
def
insert_record
(
self
,
record
):
"""
Insert
a conference talk in the database.
@type record: L{Record}
@param record:
...
...
modules/harvest_tools/thesis.py
View file @
7f717b16
...
...
@@ -62,8 +62,8 @@ class Thesis(Automaton):
self
.
logs
[
-
1
].
reject
(
MSG_NO_THESIS
,
record
.
year
())
return
False
def
load_db
(
self
,
record
):
"""
Load
a thesis in the database.
def
insert_record
(
self
,
record
):
"""
Insert
a thesis in the database.
@type record: L{Record}
@param 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