119 cookie = self.req.get_cookie() |
119 cookie = self.req.get_cookie() |
120 cookiename = '%s_active_tab' % self.config.appid |
120 cookiename = '%s_active_tab' % self.config.appid |
121 cookie[cookiename] = tabname |
121 cookie[cookiename] = tabname |
122 self.req.set_cookie(cookie, cookiename) |
122 self.req.set_cookie(cookie, cookiename) |
123 |
123 |
124 @monkeypatch(JSonController) |
|
125 def js_lazily(self, vid_eid): |
|
126 vid, eid = vid_eid.split('-') |
|
127 rset = eid and self.req.eid_rset(eid) or None |
|
128 view = self.vreg.select_view(vid, self.req, rset) |
|
129 return self._set_content_type(view, view.dispatch()) |
|
130 |
|
131 |
|
132 class EntityRelatedTab(EntityView): |
124 class EntityRelatedTab(EntityView): |
133 """A view you should inherit from leftmost, |
125 """A view you should inherit from leftmost, |
134 to wrap another actual view displaying entity related stuff. |
126 to wrap another actual view displaying entity related stuff. |
135 Such a view _must_ provide the rtype, target and vid attributes : |
127 Such a view _must_ provide the rtype, target and vid attributes : |
136 |
128 |