Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit a94d2b60ef493abf9b66091f6edf539315ac0899
Author: Valentin Gologuzov <vgologuz(a)redhat.com>
Date: Fri Nov 27 19:33:50 2015 +0100
[python] updated docs to include project creation method
---------------------------------------------------------------
python/docs/client_v2/handlers.rst | 6 +++---
python/docs/client_v2/resource_info/project.rst | 13 ++++++++++++-
2 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/python/docs/client_v2/handlers.rst b/python/docs/client_v2/handlers.rst
index e49e289..904f8ef 100644
--- a/python/docs/client_v2/handlers.rst
+++ b/python/docs/client_v2/handlers.rst
@@ -4,12 +4,12 @@ Handlers
Project
-------
.. autoclass:: copr.client_v2.handlers.ProjectHandle
- :members: get_list, get_one, update, delete
+ :members:
Project chroot
--------------
.. autoclass:: copr.client_v2.handlers.ProjectChrootHandle
- :members: get_list, get_one, enable, update, disable
+ :members:
Build
@@ -27,7 +27,7 @@ Build task
Mock chroot
-----------
.. autoclass:: copr.client_v2.handlers.MockChrootHandle
- :members: get_list, get_one
+ :members:
diff --git a/python/docs/client_v2/resource_info/project.rst
b/python/docs/client_v2/resource_info/project.rst
index 2d29a2c..a37a230 100644
--- a/python/docs/client_v2/resource_info/project.rst
+++ b/python/docs/client_v2/resource_info/project.rst
@@ -78,7 +78,18 @@ Delete project
Create new project
------------------
-.. note:: Not Implemented yet
+.. note::
+ Here you could also provide list of chroots, which should be activated. Use key
``chroots``.
+
+.. sourcecode:: python
+
+ >>> res = cl.projects.create(name="my_cool_project",
+ owner="vgologuz",
+ instructions="don't touch me!",
+ chroots=["fedora-22-x86_64"])
+ >>> print(res)
+ <Project #5384: vgologuz/my_cool_project>
+
Access project chroots