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
a88001a3
Commit
a88001a3
authored
Oct 01, 2015
by
LE GAC Renaud
Browse files
Sphinx documentation for the Thesis class.
parent
11f4dfda
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
112 additions
and
24 deletions
+112
-24
docs/api/generated/harvest_tools.thesis.Thesis.rst
docs/api/generated/harvest_tools.thesis.Thesis.rst
+27
-0
docs/api/generated/thesis/harvest_tools.thesis.Thesis.check_record.rst
...rated/thesis/harvest_tools.thesis.Thesis.check_record.rst
+6
-0
docs/api/generated/thesis/harvest_tools.thesis.Thesis.decode_xml.rst
...nerated/thesis/harvest_tools.thesis.Thesis.decode_xml.rst
+6
-0
docs/api/generated/thesis/harvest_tools.thesis.Thesis.get_create_collaboration.rst
.../harvest_tools.thesis.Thesis.get_create_collaboration.rst
+6
-0
docs/api/generated/thesis/harvest_tools.thesis.Thesis.get_create_publisher.rst
...esis/harvest_tools.thesis.Thesis.get_create_publisher.rst
+6
-0
docs/api/generated/thesis/harvest_tools.thesis.Thesis.get_record_by_fields.rst
...esis/harvest_tools.thesis.Thesis.get_record_by_fields.rst
+6
-0
docs/api/generated/thesis/harvest_tools.thesis.Thesis.insert_record.rst
...ated/thesis/harvest_tools.thesis.Thesis.insert_record.rst
+6
-0
docs/api/generated/thesis/harvest_tools.thesis.Thesis.process_url.rst
...erated/thesis/harvest_tools.thesis.Thesis.process_url.rst
+6
-0
docs/api/generated/thesis/harvest_tools.thesis.Thesis.process_xml.rst
...erated/thesis/harvest_tools.thesis.Thesis.process_xml.rst
+6
-0
docs/api/generated/thesis/harvest_tools.thesis.Thesis.report.rst
...i/generated/thesis/harvest_tools.thesis.Thesis.report.rst
+6
-0
docs/api/harvester.rst
docs/api/harvester.rst
+7
-0
modules/harvest_tools/thesis.py
modules/harvest_tools/thesis.py
+24
-24
No files found.
docs/api/generated/harvest_tools.thesis.Thesis.rst
0 → 100644
View file @
a88001a3
harvest_tools.thesis.Thesis
===========================
.. currentmodule:: harvest_tools.thesis
.. autoclass:: Thesis
:show-inheritance:
.. rubric:: Methods
.. autosummary::
:toctree: thesis/
~Thesis.check_record
~Thesis.decode_xml
~Thesis.get_create_collaboration
~Thesis.get_create_publisher
~Thesis.get_record_by_fields
~Thesis.insert_record
~Thesis.process_url
~Thesis.process_xml
~Thesis.report
docs/api/generated/thesis/harvest_tools.thesis.Thesis.check_record.rst
0 → 100644
View file @
a88001a3
harvest_tools.thesis.Thesis.check_record
========================================
.. currentmodule:: harvest_tools.thesis
.. automethod:: Thesis.check_record
\ No newline at end of file
docs/api/generated/thesis/harvest_tools.thesis.Thesis.decode_xml.rst
0 → 100644
View file @
a88001a3
harvest_tools.thesis.Thesis.decode_xml
======================================
.. currentmodule:: harvest_tools.thesis
.. automethod:: Thesis.decode_xml
\ No newline at end of file
docs/api/generated/thesis/harvest_tools.thesis.Thesis.get_create_collaboration.rst
0 → 100644
View file @
a88001a3
harvest_tools.thesis.Thesis.get_create_collaboration
====================================================
.. currentmodule:: harvest_tools.thesis
.. automethod:: Thesis.get_create_collaboration
\ No newline at end of file
docs/api/generated/thesis/harvest_tools.thesis.Thesis.get_create_publisher.rst
0 → 100644
View file @
a88001a3
harvest_tools.thesis.Thesis.get_create_publisher
================================================
.. currentmodule:: harvest_tools.thesis
.. automethod:: Thesis.get_create_publisher
\ No newline at end of file
docs/api/generated/thesis/harvest_tools.thesis.Thesis.get_record_by_fields.rst
0 → 100644
View file @
a88001a3
harvest_tools.thesis.Thesis.get_record_by_fields
================================================
.. currentmodule:: harvest_tools.thesis
.. automethod:: Thesis.get_record_by_fields
\ No newline at end of file
docs/api/generated/thesis/harvest_tools.thesis.Thesis.insert_record.rst
0 → 100644
View file @
a88001a3
harvest_tools.thesis.Thesis.insert_record
=========================================
.. currentmodule:: harvest_tools.thesis
.. automethod:: Thesis.insert_record
\ No newline at end of file
docs/api/generated/thesis/harvest_tools.thesis.Thesis.process_url.rst
0 → 100644
View file @
a88001a3
harvest_tools.thesis.Thesis.process_url
=======================================
.. currentmodule:: harvest_tools.thesis
.. automethod:: Thesis.process_url
\ No newline at end of file
docs/api/generated/thesis/harvest_tools.thesis.Thesis.process_xml.rst
0 → 100644
View file @
a88001a3
harvest_tools.thesis.Thesis.process_xml
=======================================
.. currentmodule:: harvest_tools.thesis
.. automethod:: Thesis.process_xml
\ No newline at end of file
docs/api/generated/thesis/harvest_tools.thesis.Thesis.report.rst
0 → 100644
View file @
a88001a3
harvest_tools.thesis.Thesis.report
==================================
.. currentmodule:: harvest_tools.thesis
.. automethod:: Thesis.report
\ No newline at end of file
docs/api/harvester.rst
View file @
a88001a3
...
...
@@ -102,3 +102,10 @@ Classes
:toctree: generated/
Talks
.. currentmodule:: harvest_tools.thesis
.. autosummary::
:toctree: generated/
Thesis
modules/harvest_tools/thesis.py
View file @
a88001a3
...
...
@@ -22,12 +22,12 @@ class Thesis(Automaton):
def
check_record
(
self
,
record
):
"""Check the content of the thesis in order to fix non conformities.
@type record: L{Record}
@param
record
:
Args:
record
(RecordThesis): record describing a thesis.
@rtype: bool
@return: C{
False
}
when a non conformity is found and can not be
corrected.
Returns:
bool: ``
False
``
when a non conformity is found and can not be
corrected.
"""
if
not
Automaton
.
check_record
(
self
,
record
):
...
...
@@ -63,12 +63,12 @@ class Thesis(Automaton):
def
insert_record
(
self
,
record
):
"""Insert a thesis in the database.
@type record: L{Record}
@param
record
:
Args:
record
(RecordThesis): record describing a thesis.
@rtype: int
@return
: one when the record is inserted / updated in the database
zero otherwise.
Returns:
int
: one when the record is inserted / updated in the database
zero otherwise.
"""
db
=
self
.
db
...
...
@@ -102,20 +102,20 @@ class Thesis(Automaton):
ret
=
1
if
not
self
.
dry_run
:
fields
=
dict
(
authors
=
first_author
,
authors_institute
=
first_author
,
defense
=
defense_date
,
directors
=
record
.
these_directors
(),
first_author
=
first_author
,
id_categories
=
id_category
,
id_teams
=
self
.
id_team
,
id_projects
=
self
.
id_project
,
id_status
=
UNDEF_ID
,
origin
=
oai_url
,
publication_url
=
record
.
paper_url
(),
submitted
=
record
.
submitted
()[
0
],
title
=
title
,
universities
=
universities
,
year
=
year
)
authors_institute
=
first_author
,
defense
=
defense_date
,
directors
=
record
.
these_directors
(),
first_author
=
first_author
,
id_categories
=
id_category
,
id_teams
=
self
.
id_team
,
id_projects
=
self
.
id_project
,
id_status
=
UNDEF_ID
,
origin
=
oai_url
,
publication_url
=
record
.
paper_url
(),
submitted
=
record
.
submitted
()[
0
],
title
=
title
,
universities
=
universities
,
year
=
year
)
ret
=
self
.
_insert_in_db
(
log_year
=
year
,
**
fields
)
...
...
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