Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 999ddc9827322879e9dfb134afc46c3298e79011
Author: Valentin Gologuzov <vgologuz(a)redhat.com>
Date: Wed Nov 18 17:50:27 2015 +0100
minor
---------------------------------------------------------------
python/copr/client_v2/handlers.py | 5 +++--
python/docs/client_v2/resources_usage.rst | 1 +
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/python/copr/client_v2/handlers.py b/python/copr/client_v2/handlers.py
index 6f934c7..7d15f3b 100644
--- a/python/copr/client_v2/handlers.py
+++ b/python/copr/client_v2/handlers.py
@@ -237,7 +237,7 @@ class ProjectHandle(AbstractHandle):
# todo: implement: , show_builds=False, show_chroots=False):
""" Retrieves project object.
- :type project_id: int
+ :param int project_id: project identifier
:rtype: :py:class:`~.resources.Project`
"""
query_params = {
@@ -257,7 +257,8 @@ class ProjectHandle(AbstractHandle):
def update(self, project_entity):
""" Updates project.
- :type project_entity: ProjectEntity
+ :param project_entity: project entity to use for update
+ :type project_entity: :py:class:`~.ProjectEntity`
:rtype: OperationResult
"""
url = "{}/{}".format(self.get_base_url(), project_entity.id)
diff --git a/python/docs/client_v2/resources_usage.rst
b/python/docs/client_v2/resources_usage.rst
index c48cf03..8039235 100644
--- a/python/docs/client_v2/resources_usage.rst
+++ b/python/docs/client_v2/resources_usage.rst
@@ -50,4 +50,5 @@ Individual resource allows to directly access entity properties and also
provide
# change project description (require auth)
>> p.description = u"Hello world!"
>> p.update()
+ # instead of cl.projects.update(p._entity)