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
bb229004
Commit
bb229004
authored
Jan 05, 2021
by
LE GAC Renaud
Browse files
Update store_tools to fix module imports
parent
957bf16a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
19 deletions
+22
-19
modules/store_tools/factory.py
modules/store_tools/factory.py
+7
-7
modules/store_tools/inveniostore.py
modules/store_tools/inveniostore.py
+1
-1
modules/store_tools/record.py
modules/store_tools/record.py
+2
-2
modules/store_tools/recordconf.py
modules/store_tools/recordconf.py
+3
-2
modules/store_tools/recordinst.py
modules/store_tools/recordinst.py
+4
-3
modules/store_tools/recordpubli.py
modules/store_tools/recordpubli.py
+2
-2
modules/store_tools/recordthesis.py
modules/store_tools/recordthesis.py
+3
-2
No files found.
modules/store_tools/factory.py
View file @
bb229004
...
...
@@ -3,7 +3,7 @@
"""
import
re
from
store_tools
import
(
is_conference
,
from
.base
import
(
is_conference
,
is_institute
,
is_thesis
,
MSG_INV_CONF
,
...
...
@@ -12,12 +12,12 @@ from store_tools import (is_conference,
REG_CONF
)
from
datetime
import
datetime
from
store_tools
import
CdsException
from
store_tools
import
CDS
,
INS
,
InvenioStore
from
store_tools
import
RecordConf
from
store_tools
import
RecordInst
from
store_tools
import
RecordPubli
from
store_tool
s
import
RecordThesis
from
.exception
import
CdsException
from
.inveniostore
import
CDS
,
INS
,
InvenioStore
from
.recordconf
import
RecordConf
from
.recordinst
import
RecordInst
from
.recordpubli
import
RecordPubli
from
.recordthesi
s
import
RecordThesis
REX_T
=
"\$\$t([\w, ]+)"
REX_U
=
"\$\$u([\w, ]+)"
...
...
modules/store_tools/inveniostore.py
View file @
bb229004
...
...
@@ -3,7 +3,7 @@
"""
import
requests
from
store_tools
import
CdsException
from
.exception
import
CdsException
from
requests.adapters
import
HTTPAdapter
from
builtins
import
getattr
...
...
modules/store_tools/record.py
View file @
bb229004
...
...
@@ -3,8 +3,7 @@
"""
import
pprint
from
store_tools
import
OAI
,
OAI_URL
,
REG_OAI
from
.base
import
OAI
,
OAI_URL
,
REG_OAI
class
Record
(
dict
):
...
...
@@ -110,6 +109,7 @@ class Record(dict):
information masking the ``field`` and the ``subfield`` codification.
"""
def
__init__
(
self
,
*
args
):
dict
.
__init__
(
self
,
*
args
)
...
...
modules/store_tools/recordconf.py
View file @
bb229004
""" store_tools.recordconf
"""
from
store_tools
import
REG_CONF
,
REG_YEAR
from
.base
import
REG_CONF
,
REG_YEAR
from
plugin_dbui
import
CLEAN_SPACES
from
store_tools
import
RecordPubli
from
.recordpubli
import
RecordPubli
class
RecordConf
(
RecordPubli
):
...
...
@@ -26,6 +26,7 @@ class RecordConf(RecordPubli):
+----------------+-----------------------------------------------+
"""
def
conference_country
(
self
):
"""The country where the conference took place.
...
...
modules/store_tools/recordinst.py
View file @
bb229004
""" store_tools.recordinst
"""
from
store_tools
import
is_institute
from
store_tools
import
RecordException
from
store_tools
import
Record
from
.base
import
is_institute
from
.exception
import
RecordException
from
.record
import
Record
MSG_INVALID_HOST
=
"Invalid record host"
MSG_INVALID_RECORD
=
"Invalid record, it is not describing an institute"
...
...
@@ -66,6 +66,7 @@ class RecordInst(Record):
institute data (MarcJSON)
"""
def
__init__
(
self
,
recjson
):
if
not
is_institute
(
recjson
):
...
...
modules/store_tools/recordpubli.py
View file @
bb229004
...
...
@@ -9,12 +9,12 @@ from store_tools import (ARXIV,
REG_ARXIV_NUMBER
,
REG_YEAR
)
from
store_tools
import
RecordException
from
.exception
import
RecordException
from
filters
import
CLEAN_COLLABORATION
from
numpy
import
NaN
from
pandas
import
concat
,
DataFrame
from
plugin_dbui
import
as_list
,
CLEAN_SPACES
from
store_tools
import
Record
from
.record
import
Record
AUTHOR_FORMATS
=
[
"First, Last"
,
...
...
modules/store_tools/recordthesis.py
View file @
bb229004
""" store_tools.recordthesis
"""
from
store_tools
import
THESIS_DIR
from
.base
import
THESIS_DIR
from
filters
import
CLEAN_THESIS_DEFENSE
from
store_tools
import
RecordPubli
from
.recordpubli
import
RecordPubli
class
RecordThesis
(
RecordPubli
):
...
...
@@ -17,6 +17,7 @@ class RecordThesis(RecordPubli):
+-------------------+-----------------------------------+
"""
def
authors_as_list
(
self
,
sort
=
False
):
"""The list of author(s) signing the publication.
...
...
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