summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Add support for MergeRequest validationGauvain Pocentek2016-03-221-0/+37
| | | | | | Both API and CLI support this feature. fixes #105
* add a note about project search APIGauvain Pocentek2016-03-121-0/+10
|
* Fix the 'invalid syntax' on Python 3.2, because of u'password'Asher2562016-03-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | More informations regarding this issue: Operating system: Debian Wheezy, with Python 3.2 and the last version of python-gitlab. The gitlab module raised this exception, because of the 'u' (Unicode): Traceback (most recent call last): File "push_settings.py", line 14, in <module> from helper import ROOT_EMAIL, ADMINS, git, old_git File "/opt/scripts/gitlab/helpers/helper.py", line 25, in <module> from gitlab import Gitlab File "/opt/scripts/gitlab/helpers/gitlab/__init__.py", line 32, in <module> from gitlab.objects import * # noqa File "/opt/scripts/gitlab/helpers/gitlab/objects.py", line 546 selfdict.pop(u'password', None) ^ SyntaxError: invalid syntax It is a recent change: 01802c0 (Richard Hansen 2016-02-11 22:43:25 -0500 546) selfdict.pop(u'password', None) 01802c0 (Richard Hansen 2016-02-11 22:43:25 -0500 547) otherdict.pop(u'password', None) To solve the issue, 'u' was removed.
* Re-implement _custom_list in the Gitlab classGauvain Pocentek2016-02-181-20/+17
| | | | | | | | Rename the method _raw_list. This adds support for the ``all=True`` option to enable automatic recursion and avoid pagination if requested by the user. Fixes #93
* remove unused _returnClass attributeGauvain Pocentek2016-02-141-1/+0
|
* Improve the doc for UserManagerGauvain Pocentek2016-02-121-3/+20
| | | | | Describe parameters, return values and exceptions for search() and get_by_username().
* define UserManager.get_by_username() to get a user by usernameRichard Hansen2016-02-121-0/+14
|
* define UserManager.search() to search for usersRichard Hansen2016-02-121-0/+8
|
* define GitlabObject.__eq__() and __ne__() equivalence methodsRichard Hansen2016-02-121-0/+17
|
* define GitlabObject.as_dict() to dump object as a dictRichard Hansen2016-02-111-3/+6
|
* Merge pull request #89 from ExodusIntelligence/masterGauvain Pocentek2016-02-061-1/+2
|\ | | | | Adding new `ProjectHook` attributes:
| * Added missing commaJames (d0c_s4vage) Johnson2016-02-041-1/+1
| |
| * Adding new `ProjectHook` attributes:James (d0c_s4vage) Johnson2016-02-041-1/+2
| | | | | | | | | | | | | | | | | | | | * `build_events` * `enable_ssl_verification` See the two links below: * https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/projects.md#add-project-hook * https://github.com/pyapi-gitlab/pyapi-gitlab/pull/173
* | fix GitlabObject creation in _custom_listMikhail Lopotkov2016-02-051-1/+1
| |
* | Add support for user block/unblockGauvain Pocentek2016-02-041-0/+14
|/
* Add docstrings to some methodsGauvain Pocentek2016-01-311-1/+88
|
* add support for project buildsGauvain Pocentek2016-01-301-0/+39
|
* Fix Project.tree()Gauvain Pocentek2016-01-301-3/+9
| | | | Add API tests for tree(), blob() and archive().
* Fix project updateGauvain Pocentek2016-01-301-4/+5
|
* Add sudo supportGauvain Pocentek2016-01-301-0/+1
|
* Fix the 'password' requirement for User creationGauvain Pocentek2016-01-301-5/+8
|
* Add support for application settingsGauvain Pocentek2016-01-271-7/+34
|
* Implement project variables supportGauvain Pocentek2016-01-241-0/+14
|
* implement project triggers supportGauvain Pocentek2016-01-241-0/+12
|
* Implement setting release info on a tagGauvain Pocentek2016-01-241-1/+26
| | | | | Add the set_release_description() method to ProjectTag. Add python API test for this method.
* ProjectTag supports deletion (gitlab 8.4.0)Gauvain Pocentek2016-01-241-1/+0
|
* Implement ProjectMilestone.issues()Gauvain Pocentek2016-01-231-0/+13
| | | | | | This lists the issues related to the milestone. Add python API tests for issues.
* fix ProjectLabel get and deleteGauvain Pocentek2016-01-231-1/+4
|
* add a decode method for ProjectFileGauvain Pocentek2016-01-231-0/+9
|
* Fix the json() method for python 3Gauvain Pocentek2016-01-231-4/+5
| | | | Also add unit tests and fix pep8 test
* skip BaseManager attributes when encoding to JSONRichard Hansen2016-01-231-2/+3
| | | | | | This fixes the following exception when calling User.json(): TypeError: <gitlab.objects.UserKeyManager object at 0x7f0477391ed0> is not JSON serializable
* add a missing import statementRichard Hansen2016-01-231-0/+1
| | | | | Add the import inside the function rather than at the top of the file because otherwise it would introduce a circular dependency.
* remove debugging print instructionGauvain Pocentek2016-01-161-1/+0
|
* Fix discovery of parents object attrs for managersGauvain Pocentek2016-01-161-10/+15
|
* Support setting commit statusColin D Bennett2016-01-121-0/+17
| | | | | | | | | | | | | | | | | | Support commit status updates. Commit status can be set by a POST to the appropriate commit URL. The status can be updated by a subsequent POST to the same URL with the same `name` and `ref`, but different values for `state`, `description`, etc. Note: Listing the commit statuses is not yet supported. This is done through a different path on the server, under the `repository` path. Example of use from the CLI: # add a build status to a commit gitlab project-commit-status create --project-id 2 \ --commit-id a43290c --state success --name ci/jenkins \ --target-url http://server/build/123 \ --description "Jenkins build succeeded"
* Support deletion without getting the object firstGauvain Pocentek2016-01-101-0/+15
| | | | Use this feature in the CLI to avoid an extra API call to the server.
* Improve the API documentation.Gauvain Pocentek2016-01-101-38/+188
|
* add missing importGauvain Pocentek2016-01-091-0/+1
|
* Add support for groups searchGauvain Pocentek2016-01-091-15/+24
| | | | | | | Factorize the code to avoid duplication with the ProjectManager class. Implement unit tests for the group search. Original patchh from Daniel Serodio (PR #55).
* Implement ProjectManager search/list methodsGauvain Pocentek2016-01-081-0/+27
| | | | | | The existing Gitlab methods are deprecated. Unit tests have been added.
* Create a manager for ProjectFork objectsGauvain Pocentek2016-01-081-0/+5
|
* add fork project supportfgouteroux2016-01-061-0/+28
|
* add unit tests for BaseManagerGauvain Pocentek2016-01-031-9/+8
|
* fix pretty_print with managersGauvain Pocentek2016-01-031-1/+3
|
* Implement managers to get access to resourcesGauvain Pocentek2016-01-031-26/+258
| | | | | | | | This changes the 'default' API, using managers is the recommended way to get/list/create objects. Additional operations will be implemented in followup patchs. Old methods are deprecated and will disappear in a while.
* Split code in multiple filesGauvain Pocentek2015-12-311-0/+801