equal
deleted
inserted
replaced
75 .. autoclass:: OutOfContextView |
75 .. autoclass:: OutOfContextView |
76 """ |
76 """ |
77 |
77 |
78 from cubicweb import _ |
78 from cubicweb import _ |
79 |
79 |
80 from warnings import warn |
|
81 |
|
82 from six.moves import range |
80 from six.moves import range |
83 |
81 |
84 from logilab.mtconverter import TransformError, xml_escape |
82 from logilab.mtconverter import TransformError, xml_escape |
85 from logilab.common.registry import yes |
83 from logilab.common.registry import yes |
86 |
84 |
366 def call(self, subvid=None, **kwargs): |
364 def call(self, subvid=None, **kwargs): |
367 """display a list of entities by calling their <item_vid> view |
365 """display a list of entities by calling their <item_vid> view |
368 |
366 |
369 :param listid: the DOM id to use for the root element |
367 :param listid: the DOM id to use for the root element |
370 """ |
368 """ |
371 if subvid is None and 'vid' in kwargs: |
369 assert 'vid' not in kwargs |
372 warn("should give a 'subvid' argument instead of 'vid'", |
370 kwargs['vid'] = subvid |
373 DeprecationWarning, stacklevel=2) |
|
374 else: |
|
375 kwargs['vid'] = subvid |
|
376 return super(SimpleListView, self).call(**kwargs) |
371 return super(SimpleListView, self).call(**kwargs) |
377 |
372 |
378 |
373 |
379 class SameETypeListView(EntityView): |
374 class SameETypeListView(EntityView): |
380 """:__regid__: *sameetypelist* |
375 """:__regid__: *sameetypelist* |