Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Mailman Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
304
Issues
304
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
43
Merge Requests
43
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNU Mailman
Mailman Core
Commits
8dfa62d6
Commit
8dfa62d6
authored
Sep 14, 2015
by
Barry Warsaw
Committed by
GitLab
Sep 22, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start of owners top level resource.
parent
61877ba9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
src/mailman/rest/root.py
src/mailman/rest/root.py
+8
-0
No files found.
src/mailman/rest/root.py
View file @
8dfa62d6
...
...
@@ -29,6 +29,7 @@ from mailman.config import config
from
mailman.core.constants
import
system_preferences
from
mailman.core.system
import
system
from
mailman.interfaces.listmanager
import
IListManager
from
mailman.interfaces.usermanager
import
IUserManager
from
mailman.model.uid
import
UID
from
mailman.rest.addresses
import
AllAddresses
,
AnAddress
from
mailman.rest.domains
import
ADomain
,
AllDomains
...
...
@@ -233,6 +234,13 @@ class TopLevel:
user_id
=
segments
.
pop
(
0
)
return
AUser
(
user_id
),
segments
@
child
()
def
owners
(
self
,
request
,
segments
):
"""/<api>/owners"""
if
len
(
segments
)
!=
0
:
return
BadRequest
(),
[]
@
child
()
def
templates
(
self
,
request
,
segments
):
"""/<api>/templates/<fqdn_listname>/<template>/[<language>]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment