equal
deleted
inserted
replaced
25 * possible views box |
25 * possible views box |
26 * startup views box |
26 * startup views box |
27 """ |
27 """ |
28 |
28 |
29 from cubicweb import _ |
29 from cubicweb import _ |
30 |
|
31 from six import text_type, add_metaclass |
|
32 |
30 |
33 from logilab.mtconverter import xml_escape |
31 from logilab.mtconverter import xml_escape |
34 |
32 |
35 from cubicweb import Unauthorized |
33 from cubicweb import Unauthorized |
36 from cubicweb.predicates import (match_user_groups, match_kwargs, |
34 from cubicweb.predicates import (match_user_groups, match_kwargs, |
210 cw_property_defs = {} |
208 cw_property_defs = {} |
211 context = 'incontext' |
209 context = 'incontext' |
212 |
210 |
213 @property |
211 @property |
214 def domid(self): |
212 def domid(self): |
215 return super(RsetBox, self).domid + text_type(abs(id(self))) + text_type(abs(id(self.cw_rset))) |
213 return super(RsetBox, self).domid + str(abs(id(self))) + str(abs(id(self.cw_rset))) |
216 |
214 |
217 def render_title(self, w): |
215 def render_title(self, w): |
218 w(self.cw_extra_kwargs['title']) |
216 w(self.cw_extra_kwargs['title']) |
219 |
217 |
220 def render_body(self, w): |
218 def render_body(self, w): |