2 files changed
@@ -11,18 +11,34 @@ Module contents | |||
| 11 | 11 | :exclude-members: Hook, UserProject, Group, Issue, Team, User, | |
| 12 | 12 | all_projects, owned_projects, search_projects | |
| 13 | 13 | ||
| 14 | - gitlab.exceptions module | ||
| 14 | + gitlab.base | ||
| 15 | + ----------- | ||
| 16 | + | ||
| 17 | + .. automodule:: gitlab.base | ||
| 18 | + :members: | ||
| 19 | + :undoc-members: | ||
| 20 | + :show-inheritance: | ||
| 21 | + | ||
| 22 | + gitlab.v3.objects module | ||
| 15 | 23 | ------------------------ | |
| 16 | 24 | ||
| 17 | - .. automodule:: gitlab.exceptions | ||
| 25 | + .. automodule:: gitlab.v3.objects | ||
| 18 | 26 | :members: | |
| 19 | 27 | :undoc-members: | |
| 20 | 28 | :show-inheritance: | |
| 29 | + :exclude-members: Branch, Commit, Content, Event, File, Hook, Issue, Key, | ||
| 30 | + Label, Member, MergeRequest, Milestone, Note, Snippet, | ||
| 31 | + Tag, canGet, canList, canUpdate, canCreate, canDelete, | ||
| 32 | + requiredUrlAttrs, requiredListAttrs, optionalListAttrs, | ||
| 33 | + optionalGetAttrs, requiredGetAttrs, requiredDeleteAttrs, | ||
| 34 | + requiredCreateAttrs, optionalCreateAttrs, | ||
| 35 | + requiredUpdateAttrs, optionalUpdateAttrs, getRequiresId, | ||
| 36 | + shortPrintAttr, idAttr | ||
| 21 | 37 | ||
| 22 | - gitlab.objects module | ||
| 23 | - --------------------- | ||
| 38 | + gitlab.v4.objects module | ||
| 39 | + ------------------------ | ||
| 24 | 40 | ||
| 25 | - .. automodule:: gitlab.objects | ||
| 41 | + .. automodule:: gitlab.v4.objects | ||
| 26 | 42 | :members: | |
| 27 | 43 | :undoc-members: | |
| 28 | 44 | :show-inheritance: | |
@@ -34,3 +50,11 @@ gitlab.objects module | |||
| 34 | 50 | requiredCreateAttrs, optionalCreateAttrs, | |
| 35 | 51 | requiredUpdateAttrs, optionalUpdateAttrs, getRequiresId, | |
| 36 | 52 | shortPrintAttr, idAttr | |
| 53 | + | ||
| 54 | + gitlab.exceptions module | ||
| 55 | + ------------------------ | ||
| 56 | + | ||
| 57 | + .. automodule:: gitlab.exceptions | ||
| 58 | + :members: | ||
| 59 | + :undoc-members: | ||
| 60 | + :show-inheritance: | ||
@@ -1,3 +1,4 @@ | |||
| 1 | + import inspect | ||
| 1 | 2 | import itertools | |
| 2 | 3 | import os | |
| 3 | 4 | ||
@@ -9,7 +10,10 @@ | |||
| 9 | 10 | ||
| 10 | 11 | ||
| 11 | 12 | def classref(value, short=True): | |
| 13 | + if not inspect.isclass(value): | ||
| 14 | + return ':class:%s' % value | ||
| 12 | 15 | tilde = '~' if short else '' | |
| 16 | + string = '%s.%s' % (value.__module__, value.__name__) | ||
| 13 | 17 | return ':class:`%sgitlab.objects.%s`' % (tilde, value.__name__) | |
| 14 | 18 | ||
| 15 | 19 | ||
0 commit comments