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
96316ea2
Commit
96316ea2
authored
Sep 22, 2015
by
LE GAC Renaud
Browse files
Rename Automaton.is_in_db as is_record_in_db.
parent
063c9f73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/harvest_tools/automaton.py
modules/harvest_tools/automaton.py
+2
-2
No files found.
modules/harvest_tools/automaton.py
View file @
96316ea2
...
...
@@ -119,7 +119,7 @@ class Automaton(object):
self
.
__par
=
None
self
.
__reference
=
None
def
_is_in_db
(
self
,
rec_id
,
title
):
def
_is_
record_
in_db
(
self
,
rec_id
,
title
):
"""Return C{True} if the record is already in the database.
The search is based on the origin field.
...
...
@@ -514,7 +514,7 @@ class Automaton(object):
print
"
\n
processing record"
,
rec_id
try
:
if
self
.
_is_in_db
(
rec_id
,
title
):
if
self
.
_is_
record_
in_db
(
rec_id
,
title
):
continue
xml
=
store
.
get_record
(
rec_id
)
...
...
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