-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: addition of method documentation #25
docs: addition of method documentation #25
Conversation
"""Get file from a record.""" | ||
"""Get file from a record. | ||
|
||
:param pid: TODO: Not used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This parameter (pid
) is not used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can call it dummy
or _
and in docstring say that it's just to keep function signature.
@@ -135,7 +135,7 @@ | |||
>>> print(record.files['hello.txt']['filetype']) | |||
txt | |||
|
|||
Certain key names are however reserved cannot be used for **setting** metadata: | |||
Certain key names are horaisewever reserved cannot be used for **setting** metadata: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
horaisewever
?
6e99d44
to
80d3b4e
Compare
"""Return file keys.""" | ||
"""Return file keys. | ||
|
||
:returns: Key list of the files files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JavierDelgadoFernandez can you rephrase this line? List of file keys.
?
80d3b4e
to
3a1a4a2
Compare
|
||
:raises InvalidOperationError: It occurs when the bucket is locked or | ||
deleted. | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that this documentation is not showed (Actually not even the _writable
method), but if someone is reviewing the code, it will be helpful.
3093674
to
0d96fba
Compare
@jirikuncar Updated. |
0d96fba
to
0adecd8
Compare
intersphinx_mapping = { | ||
'https://docs.python.org/': None, | ||
'invenio-files-rest': ( | ||
'http://pythonhosted.org/invenio-files-rest', None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https
0adecd8
to
4191d5c
Compare
@jirikuncar Updated. |
|
||
:param record: Record used to relate with the ``Bucket``. | ||
:param bucket: Bucket used to relate with the ``Record``. | ||
:returns: The :class:`invenio_records_files.models.RecordsBuckets` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use ~
to show only class name in generated docs.
4191d5c
to
6228301
Compare
* Improves method documentation. (addresses inveniosoftware#23) Signed-off-by: Javier Delgado <javier.delgado.fernandez@cern.ch>
6228301
to
3540d99
Compare
@jirikuncar Updated. |
Signed-off-by: Javier Delgado javier.delgado.fernandez@cern.ch