blob: 4c8dc89988b0f04dd18a7e6754537d39c2156d34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
from gitlab.base import * # noqa
from gitlab.mixins import * # noqa
class ProjectWiki(SaveMixin, ObjectDeleteMixin, RESTObject):
_id_attr = "slug"
_short_print_attr = "slug"
class ProjectWikiManager(CRUDMixin, RESTManager):
_path = "/projects/%(project_id)s/wikis"
_obj_cls = ProjectWiki
_from_parent_attrs = {"project_id": "id"}
_create_attrs = (("title", "content"), ("format",))
_update_attrs = (tuple(), ("title", "content", "format"))
_list_filters = ("with_content",)
|