author | sylvain.thenault@logilab.fr |
Mon, 04 May 2009 13:09:48 +0200 | |
branch | tls-sprint |
changeset 1641 | 2c80b09d8d86 |
parent 1554 | 3a3263df6cdd |
parent 1598 | 8f400d5f6742 |
child 1653 | 8b82227719f0 |
permissions | -rw-r--r-- |
0 | 1 |
"""Set of HTML generic base views: |
2 |
||
3 |
* noresult, final |
|
4 |
* primary, sidebox |
|
5 |
* secondary, oneline, incontext, outofcontext, text |
|
6 |
* list |
|
7 |
||
8 |
||
9 |
:organization: Logilab |
|
479 | 10 |
:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
0 | 11 |
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
12 |
""" |
|
964
a711c7c185d1
gargl, this shouldn't be there in case we're running py 2.4
sylvain.thenault@logilab.fr
parents:
958
diff
changeset
|
13 |
#from __future__ import with_statement |
958
6053622aae81
fix name error, filter out non empty rset
sylvain.thenault@logilab.fr
parents:
956
diff
changeset
|
14 |
|
0 | 15 |
__docformat__ = "restructuredtext en" |
16 |
||
17 |
from rql import nodes |
|
18 |
||
824
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
19 |
from logilab.mtconverter import TransformError, html_escape |
0 | 20 |
|
1491
742aff97dbf7
move AutomaticEntityForm and PrimaryView into their own module
sylvain.thenault@logilab.fr
parents:
1477
diff
changeset
|
21 |
from cubicweb import NoSelectableObject |
824
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
22 |
from cubicweb.selectors import yes, empty_rset |
756 | 23 |
from cubicweb.view import EntityView, AnyRsetView, View |
824
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
24 |
from cubicweb.common.uilib import cut, printable_value |
0 | 25 |
|
26 |
_ = unicode |
|
27 |
||
28 |
class NullView(AnyRsetView): |
|
29 |
"""default view when no result has been found""" |
|
30 |
id = 'null' |
|
758
0c0dfd33a76d
instantiate selectors wherever needed
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
742
diff
changeset
|
31 |
__select__ = yes() |
0 | 32 |
def call(self, **kwargs): |
33 |
pass |
|
34 |
cell_call = call |
|
35 |
||
36 |
||
632 | 37 |
class NoResultView(View): |
0 | 38 |
"""default view when no result has been found""" |
742
99115e029dca
replaced most of __selectors__ assignments with __select__
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
647
diff
changeset
|
39 |
__select__ = empty_rset() |
0 | 40 |
id = 'noresult' |
1451 | 41 |
|
0 | 42 |
def call(self, **kwargs): |
43 |
self.w(u'<div class="searchMessage"><strong>%s</strong></div>\n' |
|
44 |
% self.req._('No result matching query')) |
|
45 |
||
46 |
||
47 |
class FinalView(AnyRsetView): |
|
48 |
"""display values without any transformation (i.e. get a number for |
|
1451 | 49 |
entities) |
0 | 50 |
""" |
51 |
id = 'final' |
|
978
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
52 |
# record generated i18n catalog messages |
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
53 |
_('%d years') |
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
54 |
_('%d months') |
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
55 |
_('%d weeks') |
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
56 |
_('%d days') |
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
57 |
_('%d hours') |
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
58 |
_('%d minutes') |
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
59 |
_('%d seconds') |
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
60 |
_('%d years') |
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
61 |
_('%d months') |
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
62 |
_('%d weeks') |
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
63 |
_('%d days') |
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
64 |
_('%d hours') |
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
65 |
_('%d minutes') |
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
66 |
_('%d seconds') |
1451 | 67 |
|
573
9c8fd72ba6c1
try to get raw text values in rset csv view
sylvain.thenault@logilab.fr
parents:
570
diff
changeset
|
68 |
def cell_call(self, row, col, props=None, displaytime=False, format='text/html'): |
0 | 69 |
etype = self.rset.description[row][col] |
70 |
value = self.rset.rows[row][col] |
|
71 |
if etype == 'String': |
|
72 |
entity, rtype = self.rset.related_entity(row, col) |
|
73 |
if entity is not None: |
|
74 |
# yes ! |
|
573
9c8fd72ba6c1
try to get raw text values in rset csv view
sylvain.thenault@logilab.fr
parents:
570
diff
changeset
|
75 |
self.w(entity.printable_value(rtype, value, format=format)) |
0 | 76 |
return |
77 |
if etype in ('Time', 'Interval'): |
|
1451 | 78 |
# value is DateTimeDelta but we have no idea about what is the |
0 | 79 |
# reference date here, so we can only approximate years and months |
978
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
80 |
if format == 'text/html': |
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
81 |
space = ' ' |
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
82 |
else: |
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
83 |
space = ' ' |
0 | 84 |
if value.days > 730: # 2 years |
978
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
85 |
self.w(self.req.__('%%d%syears' % space) % (value.days // 365)) |
0 | 86 |
elif value.days > 60: # 2 months |
978
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
87 |
self.w(self.req.__('%%d%smonths' % space) % (value.days // 30)) |
0 | 88 |
elif value.days > 14: # 2 weeks |
978
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
89 |
self.w(self.req.__('%%d%sweeks' % space) % (value.days // 7)) |
0 | 90 |
elif value.days > 2: |
978
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
91 |
self.w(self.req.__('%%d%sdays' % space) % int(value.days)) |
0 | 92 |
elif value.hours > 2: |
978
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
93 |
self.w(self.req.__('%%d%shours' % space) % int(value.hours)) |
0 | 94 |
elif value.minutes >= 2: |
978
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
95 |
self.w(self.req.__('%%d%sminutes' % space) % int(value.minutes)) |
0 | 96 |
else: |
978
536c748e7b3f
use non-breakable space in time display
sylvain.thenault@logilab.fr
parents:
964
diff
changeset
|
97 |
self.w(self.req.__('%%d%sseconds' % space) % int(value.seconds)) |
0 | 98 |
return |
99 |
self.wdata(printable_value(self.req, etype, value, props, displaytime=displaytime)) |
|
100 |
||
101 |
||
102 |
class SecondaryView(EntityView): |
|
103 |
id = 'secondary' |
|
104 |
title = _('secondary') |
|
1451 | 105 |
|
0 | 106 |
def cell_call(self, row, col): |
107 |
"""the secondary view for an entity |
|
108 |
secondary = icon + view(oneline) |
|
109 |
""" |
|
110 |
entity = self.entity(row, col) |
|
111 |
self.w(u' ') |
|
112 |
self.wview('oneline', self.rset, row=row, col=col) |
|
113 |
||
824
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
114 |
|
0 | 115 |
class OneLineView(EntityView): |
116 |
id = 'oneline' |
|
1451 | 117 |
title = _('oneline') |
0 | 118 |
|
119 |
def cell_call(self, row, col): |
|
120 |
"""the one line view for an entity: linked text view |
|
121 |
""" |
|
122 |
entity = self.entity(row, col) |
|
123 |
self.w(u'<a href="%s">' % html_escape(entity.absolute_url())) |
|
124 |
self.w(html_escape(self.view('text', self.rset, row=row, col=col))) |
|
125 |
self.w(u'</a>') |
|
126 |
||
824
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
127 |
|
0 | 128 |
class TextView(EntityView): |
532
ce3e94cbb074
specify content type for text views
sylvain.thenault@logilab.fr
parents:
531
diff
changeset
|
129 |
"""the simplest text view for an entity""" |
0 | 130 |
id = 'text' |
131 |
title = _('text') |
|
532
ce3e94cbb074
specify content type for text views
sylvain.thenault@logilab.fr
parents:
531
diff
changeset
|
132 |
content_type = 'text/plain' |
647
49bb57a9606b
some selectors update + drop EntityRelationView (only used by jpl)
sylvain.thenault@logilab.fr
parents:
632
diff
changeset
|
133 |
|
0 | 134 |
def call(self, **kwargs): |
135 |
"""the view is called for an entire result set, by default loop |
|
136 |
other rows of the result set and call the same view on the |
|
137 |
particular row |
|
138 |
||
139 |
Views applicable on None result sets have to override this method |
|
140 |
""" |
|
141 |
rset = self.rset |
|
142 |
if rset is None: |
|
143 |
raise NotImplementedError, self |
|
144 |
for i in xrange(len(rset)): |
|
145 |
self.wview(self.id, rset, row=i, **kwargs) |
|
146 |
if len(rset) > 1: |
|
147 |
self.w(u"\n") |
|
1451 | 148 |
|
0 | 149 |
def cell_call(self, row, col=0, **kwargs): |
150 |
entity = self.entity(row, col) |
|
151 |
self.w(cut(entity.dc_title(), |
|
152 |
self.req.property_value('navigation.short-line-size'))) |
|
153 |
||
137
7e45cf48c2f1
don't display additional owners in metadata, this is confusing
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
154 |
|
0 | 155 |
class MetaDataView(EntityView): |
156 |
"""paragraph view of some metadata""" |
|
157 |
id = 'metadata' |
|
158 |
show_eid = True |
|
1451 | 159 |
|
0 | 160 |
def cell_call(self, row, col): |
161 |
_ = self.req._ |
|
162 |
entity = self.entity(row, col) |
|
163 |
self.w(u'<div class="metadata">') |
|
164 |
if self.show_eid: |
|
165 |
self.w(u'#%s - ' % entity.eid) |
|
166 |
if entity.modification_date != entity.creation_date: |
|
167 |
self.w(u'<span>%s</span> ' % _('latest update on')) |
|
1552 | 168 |
self.w(u'<span class="value">%s</span>, ' |
0 | 169 |
% self.format_date(entity.modification_date)) |
170 |
# entities from external source may not have a creation date (eg ldap) |
|
1451 | 171 |
if entity.creation_date: |
0 | 172 |
self.w(u'<span>%s</span> ' % _('created on')) |
173 |
self.w(u'<span class="value">%s</span>' |
|
174 |
% self.format_date(entity.creation_date)) |
|
175 |
if entity.creator: |
|
1456
998ff29c3390
related entitied must be computed in _preinit_side_related
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
1431
diff
changeset
|
176 |
self.w(u' <span>%s</span> ' % _('by')) |
0 | 177 |
self.w(u'<span class="value">%s</span>' % entity.creator.name()) |
178 |
self.w(u'</div>') |
|
179 |
||
180 |
||
181 |
# new default views for finner control in general views , to use instead of |
|
182 |
# oneline / secondary |
|
183 |
||
184 |
class InContextTextView(TextView): |
|
185 |
id = 'textincontext' |
|
186 |
title = None # not listed as a possible view |
|
187 |
def cell_call(self, row, col): |
|
188 |
entity = self.entity(row, col) |
|
189 |
self.w(entity.dc_title()) |
|
824
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
190 |
|
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
191 |
|
0 | 192 |
class OutOfContextTextView(InContextTextView): |
193 |
id = 'textoutofcontext' |
|
194 |
||
195 |
def cell_call(self, row, col): |
|
196 |
entity = self.entity(row, col) |
|
197 |
self.w(entity.dc_long_title()) |
|
198 |
||
199 |
||
200 |
class InContextView(EntityView): |
|
201 |
id = 'incontext' |
|
202 |
||
203 |
def cell_call(self, row, col): |
|
204 |
entity = self.entity(row, col) |
|
205 |
desc = cut(entity.dc_description(), 50) |
|
206 |
self.w(u'<a href="%s" title="%s">' % (html_escape(entity.absolute_url()), |
|
207 |
html_escape(desc))) |
|
208 |
self.w(html_escape(self.view('textincontext', self.rset, row=row, col=col))) |
|
209 |
self.w(u'</a>') |
|
210 |
||
1451 | 211 |
|
0 | 212 |
class OutOfContextView(EntityView): |
213 |
id = 'outofcontext' |
|
214 |
||
215 |
def cell_call(self, row, col): |
|
216 |
self.w(u'<a href="%s">' % self.entity(row, col).absolute_url()) |
|
217 |
self.w(html_escape(self.view('textoutofcontext', self.rset, row=row, col=col))) |
|
218 |
self.w(u'</a>') |
|
219 |
||
220 |
||
824
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
221 |
# list views ################################################################## |
0 | 222 |
|
223 |
class ListView(EntityView): |
|
224 |
id = 'list' |
|
225 |
title = _('list') |
|
226 |
item_vid = 'listitem' |
|
1451 | 227 |
|
0 | 228 |
def call(self, klass=None, title=None, subvid=None, listid=None, **kwargs): |
229 |
"""display a list of entities by calling their <item_vid> view |
|
1451 | 230 |
|
0 | 231 |
:param listid: the DOM id to use for the root element |
232 |
""" |
|
233 |
if subvid is None and 'subvid' in self.req.form: |
|
234 |
subvid = self.req.form.pop('subvid') # consume it |
|
235 |
if listid: |
|
236 |
listid = u' id="%s"' % listid |
|
237 |
else: |
|
238 |
listid = u'' |
|
239 |
if title: |
|
240 |
self.w(u'<div%s class="%s"><h4>%s</h4>\n' % (listid, klass or 'section', title)) |
|
241 |
self.w(u'<ul>\n') |
|
242 |
else: |
|
243 |
self.w(u'<ul%s class="%s">\n' % (listid, klass or 'section')) |
|
244 |
for i in xrange(self.rset.rowcount): |
|
245 |
self.cell_call(row=i, col=0, vid=subvid, **kwargs) |
|
246 |
self.w(u'</ul>\n') |
|
247 |
if title: |
|
248 |
self.w(u'</div>\n') |
|
249 |
||
250 |
def cell_call(self, row, col=0, vid=None, **kwargs): |
|
251 |
self.w(u'<li>') |
|
252 |
self.wview(self.item_vid, self.rset, row=row, col=col, vid=vid, **kwargs) |
|
253 |
self.w(u'</li>\n') |
|
254 |
||
255 |
def url(self): |
|
256 |
"""overrides url method so that by default, the view list is called |
|
257 |
with sorted entities |
|
258 |
""" |
|
259 |
coltypes = self.rset.column_types(0) |
|
260 |
# don't want to generate the rql if there is some restriction on |
|
261 |
# something else than the entity type |
|
262 |
if len(coltypes) == 1: |
|
263 |
# XXX norestriction is not correct here. For instance, in cases like |
|
264 |
# Any P,N WHERE P is Project, P name N |
|
265 |
# norestriction should equal True |
|
266 |
restr = self.rset.syntax_tree().children[0].where |
|
267 |
norestriction = (isinstance(restr, nodes.Relation) and |
|
268 |
restr.is_types_restriction()) |
|
269 |
if norestriction: |
|
270 |
etype = iter(coltypes).next() |
|
271 |
return self.build_url(etype.lower(), vid=self.id) |
|
272 |
if len(self.rset) == 1: |
|
273 |
entity = self.rset.get_entity(0, 0) |
|
274 |
return self.build_url(entity.rest_path(), vid=self.id) |
|
275 |
return self.build_url(rql=self.rset.printable_rql(), vid=self.id) |
|
276 |
||
1451 | 277 |
|
0 | 278 |
class ListItemView(EntityView): |
279 |
id = 'listitem' |
|
1451 | 280 |
|
0 | 281 |
@property |
282 |
def redirect_vid(self): |
|
283 |
if self.req.search_state[0] == 'normal': |
|
284 |
return 'outofcontext' |
|
285 |
return 'outofcontext-search' |
|
1451 | 286 |
|
0 | 287 |
def cell_call(self, row, col, vid=None, **kwargs): |
288 |
if not vid: |
|
289 |
vid = self.redirect_vid |
|
290 |
try: |
|
291 |
self.wview(vid, self.rset, row=row, col=col, **kwargs) |
|
292 |
except NoSelectableObject: |
|
293 |
if vid == self.redirect_vid: |
|
294 |
raise |
|
295 |
self.wview(self.redirect_vid, self.rset, row=row, col=col, **kwargs) |
|
296 |
||
297 |
||
298 |
class SimpleListView(ListItemView): |
|
299 |
"""list without bullets""" |
|
300 |
id = 'simplelist' |
|
301 |
redirect_vid = 'incontext' |
|
302 |
||
303 |
||
304 |
class CSVView(SimpleListView): |
|
305 |
id = 'csv' |
|
306 |
redirect_vid = 'incontext' |
|
1451 | 307 |
|
0 | 308 |
def call(self, **kwargs): |
309 |
rset = self.rset |
|
310 |
for i in xrange(len(rset)): |
|
311 |
self.cell_call(i, 0, vid=kwargs.get('vid')) |
|
312 |
if i < rset.rowcount-1: |
|
313 |
self.w(u", ") |
|
314 |
||
315 |
||
316 |
class TreeItemView(ListItemView): |
|
317 |
id = 'treeitem' |
|
318 |
||
319 |
def cell_call(self, row, col): |
|
320 |
self.wview('incontext', self.rset, row=row, col=col) |
|
321 |
||
322 |
class TextSearchResultView(EntityView): |
|
323 |
"""this view is used to display full-text search |
|
324 |
||
325 |
It tries to highlight part of data where the search word appears. |
|
326 |
||
327 |
XXX: finish me (fixed line width, fixed number of lines, CSS, etc.) |
|
328 |
""" |
|
329 |
id = 'tsearch' |
|
330 |
||
331 |
def cell_call(self, row, col, **kwargs): |
|
332 |
entity = self.complete_entity(row, col) |
|
333 |
self.w(entity.view('incontext')) |
|
334 |
searched = self.rset.searched_text() |
|
335 |
if searched is None: |
|
336 |
return |
|
337 |
searched = searched.lower() |
|
338 |
highlighted = '<b>%s</b>' % searched |
|
339 |
for attr in entity.e_schema.indexable_attributes(): |
|
340 |
try: |
|
341 |
value = html_escape(entity.printable_value(attr, format='text/plain').lower()) |
|
342 |
except TransformError, ex: |
|
343 |
continue |
|
344 |
except: |
|
345 |
continue |
|
346 |
if searched in value: |
|
347 |
contexts = [] |
|
348 |
for ctx in value.split(searched): |
|
349 |
if len(ctx) > 30: |
|
350 |
contexts.append(u'...' + ctx[-30:]) |
|
351 |
else: |
|
352 |
contexts.append(ctx) |
|
353 |
value = u'\n' + highlighted.join(contexts) |
|
1451 | 354 |
self.w(value.replace('\n', '<br/>')) |
0 | 355 |
|
356 |
||
824
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
357 |
class TooltipView(EntityView): |
0 | 358 |
"""A entity view used in a tooltip""" |
359 |
id = 'tooltip' |
|
360 |
def cell_call(self, row, col): |
|
361 |
self.wview('oneline', self.rset, row=row, col=col) |
|
362 |
||
824
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
363 |
|
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
364 |
# XXX bw compat |
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
365 |
|
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
366 |
from logilab.common.deprecation import class_moved |
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
367 |
|
0 | 368 |
try: |
369 |
from cubicweb.web.views.tableview import TableView |
|
370 |
TableView = class_moved(TableView) |
|
371 |
except ImportError: |
|
372 |
pass # gae has no tableview module (yet) |
|
824
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
373 |
|
1491
742aff97dbf7
move AutomaticEntityForm and PrimaryView into their own module
sylvain.thenault@logilab.fr
parents:
1477
diff
changeset
|
374 |
from cubicweb.web.views import boxes, xmlrss, primary |
742aff97dbf7
move AutomaticEntityForm and PrimaryView into their own module
sylvain.thenault@logilab.fr
parents:
1477
diff
changeset
|
375 |
PrimaryView = class_moved(primary.PrimaryView) |
824
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
376 |
SideBoxView = class_moved(boxes.SideBoxView) |
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
377 |
XmlView = class_moved(xmlrss.XmlView) |
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
378 |
XmlItemView = class_moved(xmlrss.XmlItemView) |
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
379 |
XmlRsetView = class_moved(xmlrss.XmlRsetView) |
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
380 |
RssView = class_moved(xmlrss.RssView) |
a5e6acffde30
merge, split baseviews (new csvexport, xmlrss and editviews modules)
sylvain.thenault@logilab.fr
parents:
795
diff
changeset
|
381 |
RssItemView = class_moved(xmlrss.RssItemView) |
1451 | 382 |