equal
deleted
inserted
replaced
813 and parsed. |
813 and parsed. |
814 |
814 |
815 :returns: an instance of `cubicweb.devtools.htmlparser.PageInfo` |
815 :returns: an instance of `cubicweb.devtools.htmlparser.PageInfo` |
816 encapsulation the generated HTML |
816 encapsulation the generated HTML |
817 """ |
817 """ |
818 req = req or rset and rset.req or self.request() |
818 if req is None: |
|
819 if rset is None: |
|
820 req = self.request() |
|
821 else: |
|
822 req = rset.req |
819 req.form['vid'] = vid |
823 req.form['vid'] = vid |
820 viewsreg = self.vreg['views'] |
824 viewsreg = self.vreg['views'] |
821 view = viewsreg.select(vid, req, rset=rset, **kwargs) |
825 view = viewsreg.select(vid, req, rset=rset, **kwargs) |
822 # set explicit test description |
826 # set explicit test description |
823 if rset is not None: |
827 if rset is not None: |