Commit 7f717b16 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Rename the method Automaton.load_db to insert_record.

parent b8a7f358
......@@ -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}
......
......@@ -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
......
......@@ -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:
......
......@@ -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:
......
......@@ -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:
......
......@@ -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:
......
......@@ -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:
......
......@@ -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:
......
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