Switch to unified view

a/Allura/allura/controllers/auth.py b/Allura/allura/controllers/auth.py
...
...
257
    def index(self, **kw):
257
    def index(self, **kw):
258
        require_authenticated()
258
        require_authenticated()
259
        c.form = F.subscription_form
259
        c.form = F.subscription_form
260
        c.revoke_access = F.oauth_revocation_form
260
        c.revoke_access = F.oauth_revocation_form
261
        subscriptions = []
261
        subscriptions = []
262
        mailboxes = M.Mailbox.query.find(dict(user_id=c.user._id)).all()
262
        mailboxes = M.Mailbox.query.find(dict(user_id=c.user._id))
263
        mailboxes = list(mailboxes.ming_cursor)
263
        projects = dict(
264
        projects = dict(
264
            (p._id, p) for p in M.Project.query.find(dict(
265
            (p._id, p) for p in M.Project.query.find(dict(
265
                    _id={'$in': [mb.project_id for mb in mailboxes ]})))
266
                    _id={'$in': [mb.project_id for mb in mailboxes ]})).ming_cursor)
266
        app_index = dict(
267
        app_index = dict(
267
            (ac._id, ac) for ac in M.AppConfig.query.find(dict(
268
            (ac._id, ac) for ac in M.AppConfig.query.find(dict(
268
                    _id={'$in': [ mb.app_config_id for mb in mailboxes ] })))
269
                    _id={'$in': [ mb.app_config_id for mb in mailboxes ] })).ming_cursor)
269
        
270
        
270
        for mb in mailboxes:
271
        for mb in mailboxes:
271
            project = projects.get(mb.project_id, None)
272
            project = projects.get(mb.project_id, None)
272
            app_config = app_index.get(mb.app_config_id, None)
273
            app_config = app_index.get(mb.app_config_id, None)
273
            if project is None:
274
            if project is None: