Show More
@@ -80,8 +80,9 b' 1) Start by running the interactive ishe' | |||
|
80 | 80 | 2a) Add user called 'admin' into all repositories with write permission. |
|
81 | 81 | Permissions can be also `repository.read`, `repository.admin`, `repository.none` |
|
82 | 82 | |
|
83 | ||
|
83 | 84 | .. code-block:: python |
|
84 |
:dedent: |
|
|
85 | :dedent: | |
|
85 | 86 | |
|
86 | 87 | In [1]: from rhodecode.model.repo import RepoModel |
|
87 | 88 | In [2]: user = User.get_by_username('admin') |
@@ -94,7 +95,7 b" 2b) Add user called 'admin' into all rep" | |||
|
94 | 95 | Permissions can be also can be `group.read`, `group.admin`, `group.none` |
|
95 | 96 | |
|
96 | 97 | .. code-block:: python |
|
97 |
:dedent: |
|
|
98 | :dedent: | |
|
98 | 99 | |
|
99 | 100 | In [1]: from rhodecode.model.repo import RepoModel |
|
100 | 101 | In [2]: user = User.get_by_username('admin') |
@@ -108,7 +109,7 b' Delete a problematic pull request' | |||
|
108 | 109 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|
109 | 110 | |
|
110 | 111 | .. code-block:: python |
|
111 |
:dedent: |
|
|
112 | :dedent: | |
|
112 | 113 | |
|
113 | 114 | In [1]: from rhodecode.model.pull_request import PullRequestModel |
|
114 | 115 | In [2]: pullrequest_id = 123 |
General Comments 0
You need to be logged in to leave comments.
Login now