Commits

ejucovy  committed a53a220

fix repo view support for multi-repo base view as well as views that are within a repo

  • Participants
  • Parent commits becc466

Comments (0)

Files changed (2)

 1. Add pictures for:
- * root /browser/ in multirepo situations
  * /search/ 
  * /report/1/
  * /query/

File userpictures/__init__.py

         return []
 
     def _browser_filter(self, req, data):
-        if not data.get('dir'):
-            return self._browser_changeset_filter(req, data)
-        else:
-            return self._browser_lineitem_filter(req, data)
+        filter_ = []
+        filter_.extend(self._browser_changeset_filter(req, data))
+        filter_.extend(self._browser_lineitem_filter(req, data))
+        return filter_
 
     def _browser_changeset_filter(self, req, data):
         author = None
-        if data.get('file', {}).get('changeset'):
+        if (data.get('file') or {}).get('changeset'):
             author = data['file']['changeset'].author
         elif 'changeset' in data:
             author = data['changeset'].author
                 ]
 
     def _browser_lineitem_filter(self, req, data):
-        if not data.get('dir') or 'changes' not in data['dir']:
-            return []
-        return self._browser_lineitem_render_filter(req, data)
-    
-    def _browser_lineitem_render_filter(self, req, data):
         def find_change(stream):
             author = stream[1][1]
             tag = self._generate_avatar(req, author,