Пример #1
0
 def render_page(self, bundle, user):
     channels = Channel.select()
     plugin_channels = [c for c in channels if type(c) == PluginChannel]
     bundle_channels = [c for c in channels if type(c) == ChannelBundle]
     return self.renderer.manage_bundle(
         bundle=bundle,
         user=user,
         subscribed_channels=bundle.bundled_channels,
         plugin_channels=plugin_channels,
         bundle_channels=bundle_channels,
     )
Пример #2
0
 def get(self):
     u = User.get(self.session['user']['id'])
     channels = Channel.select()
     return self.renderer.emails(user=u, channels=channels)