Skip to content
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

Merged

Conversation

JavierDelgadoFernandez
Copy link
Contributor

Signed-off-by: Javier Delgado javier.delgado.fernandez@cern.ch

"""Get file from a record."""
"""Get file from a record.

:param pid: TODO: Not used.
Copy link
Contributor Author

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.

Copy link
Member

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.

@jirikuncar jirikuncar added this to the I3B-API-Docs milestone Jul 28, 2016
@@ -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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

horaisewever ?

"""Return file keys."""
"""Return file keys.

:returns: Key list of the files files.
Copy link
Member

@jirikuncar jirikuncar Aug 1, 2016

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.?


:raises InvalidOperationError: It occurs when the bucket is locked or
deleted.
"""
Copy link
Contributor Author

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.

@jirikuncar
Copy link
Member

ping @JavierDelgadoFernandez

@JavierDelgadoFernandez
Copy link
Contributor Author

@jirikuncar Updated.

intersphinx_mapping = {
'https://docs.python.org/': None,
'invenio-files-rest': (
'http://pythonhosted.org/invenio-files-rest', None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https

@JavierDelgadoFernandez
Copy link
Contributor Author

@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`
Copy link
Member

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.

* Improves method documentation. (addresses inveniosoftware#23)

Signed-off-by: Javier Delgado <javier.delgado.fernandez@cern.ch>
@JavierDelgadoFernandez
Copy link
Contributor Author

@jirikuncar Updated.

@jirikuncar jirikuncar merged commit 3540d99 into inveniosoftware:master Aug 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants