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): ...@@ -217,8 +217,8 @@ class Articles(Automaton):
return True return True
def load_db(self, record): def insert_record(self, record):
"""Load an article in the database. """Insert an article in the database.
The method assume that erratum are removed. The method assume that erratum are removed.
@type record: L{Record} @type record: L{Record}
......
...@@ -399,8 +399,8 @@ class Automaton(object): ...@@ -399,8 +399,8 @@ class Automaton(object):
return True return True
def load_db(self, record): def insert_record(self, record):
"""Load the record in the database. """Insert the record in the database.
@note: This method depend on the type of publications. @note: This method depend on the type of publications.
It has to be implemented for each inherited class. It has to be implemented for each inherited class.
...@@ -572,8 +572,8 @@ class Automaton(object): ...@@ -572,8 +572,8 @@ class Automaton(object):
if self.dbg: if self.dbg:
print "start loading in the database" print "start loading in the database"
# load record in the database # insert the record in the database
self.load_db(record) self.insert_record(record)
if self.dbg: if self.dbg:
print self.logs[-1].action.upper(), self.logs[-1].txt print self.logs[-1].action.upper(), self.logs[-1].txt
......
...@@ -52,8 +52,8 @@ class Notes(Automaton): ...@@ -52,8 +52,8 @@ class Notes(Automaton):
return True return True
def load_db(self, record): def insert_record(self, record):
"""Load a public note in the database. """INsert a public note in the database.
@type record: L{Record} @type record: L{Record}
@param record: @param record:
......
...@@ -74,8 +74,8 @@ class Preprints(Automaton): ...@@ -74,8 +74,8 @@ class Preprints(Automaton):
return True return True
def load_db(self, record): def insert_record(self, record):
"""Load a preprint in the database. """Insert a preprint in the database.
@type record: L{Record} @type record: L{Record}
@param record: @param record:
......
...@@ -59,8 +59,8 @@ class Proceedings(Automaton): ...@@ -59,8 +59,8 @@ class Proceedings(Automaton):
return True return True
def load_db(self, record): def insert_record(self, record):
"""Load a conference proceeding in the database. """Insert a conference proceeding in the database.
@type record: L{Record} @type record: L{Record}
@param record: @param record:
......
...@@ -55,8 +55,8 @@ class Reports(Automaton): ...@@ -55,8 +55,8 @@ class Reports(Automaton):
return True return True
def load_db(self, record): def insert_record(self, record):
"""Load a report in the database. """INsert a report in the database.
@type record: L{Record} @type record: L{Record}
@param record: @param record:
......
...@@ -55,8 +55,8 @@ class Talks(Automaton): ...@@ -55,8 +55,8 @@ class Talks(Automaton):
return True return True
def load_db(self, record): def insert_record(self, record):
"""Load a conference talk in the database. """Insert a conference talk in the database.
@type record: L{Record} @type record: L{Record}
@param record: @param record:
......
...@@ -62,8 +62,8 @@ class Thesis(Automaton): ...@@ -62,8 +62,8 @@ class Thesis(Automaton):
self.logs[-1].reject(MSG_NO_THESIS, record.year()) self.logs[-1].reject(MSG_NO_THESIS, record.year())
return False return False
def load_db(self, record): def insert_record(self, record):
"""Load a thesis in the database. """Insert a thesis in the database.
@type record: L{Record} @type record: L{Record}
@param 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