equal
deleted
inserted
replaced
19 Specific views for entities adapting to IDownloadable |
19 Specific views for entities adapting to IDownloadable |
20 ===================================================== |
20 ===================================================== |
21 """ |
21 """ |
22 __docformat__ = "restructuredtext en" |
22 __docformat__ = "restructuredtext en" |
23 _ = unicode |
23 _ = unicode |
|
24 |
|
25 from six.moves import range |
24 |
26 |
25 from logilab.mtconverter import BINARY_ENCODINGS, TransformError, xml_escape |
27 from logilab.mtconverter import BINARY_ENCODINGS, TransformError, xml_escape |
26 from logilab.common.deprecation import class_renamed, deprecated |
28 from logilab.common.deprecation import class_renamed, deprecated |
27 |
29 |
28 from cubicweb import tags |
30 from cubicweb import tags |
164 |
166 |
165 _embedding_tag = None |
167 _embedding_tag = None |
166 |
168 |
167 def call(self, **kwargs): |
169 def call(self, **kwargs): |
168 rset = self.cw_rset |
170 rset = self.cw_rset |
169 for i in xrange(len(rset)): |
171 for i in range(len(rset)): |
170 self.w(u'<div class="efile">') |
172 self.w(u'<div class="efile">') |
171 self.wview(self.__regid__, rset, row=i, col=0, **kwargs) |
173 self.wview(self.__regid__, rset, row=i, col=0, **kwargs) |
172 self.w(u'</div>') |
174 self.w(u'</div>') |
173 |
175 |
174 def cell_call(self, row, col, link=False, **kwargs): |
176 def cell_call(self, row, col, link=False, **kwargs): |