]> git.ipfire.org Git - ipfire.org.git/blame - src/web/lists.py
lists: Implement some basic code to talk to Mailman
[ipfire.org.git] / src / web / lists.py
CommitLineData
97e15cf6
MT
1#!/usr/bin/python3
2
3import tornado.web
4
5from . import base
6
7class IndexHandler(base.BaseHandler):
8 @tornado.web.authenticated
9 async def get(self):
10 # Fetch all available lists
11 lists = await self.backend.lists.get_lists()
12
13 # Fetch all subscribed lists
14 subscribed_lists = await self.current_user.get_lists()
15
16 self.render("lists/index.html", lists=lists, subscribed_lists=subscribed_lists)