4 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
4 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
6 """ |
6 """ |
7 __docformat__ = "restructuredtext en" |
7 __docformat__ = "restructuredtext en" |
8 |
8 |
9 from logilab.common.deprecation import class_moved |
9 from logilab.common.deprecation import class_renamed |
10 |
10 |
11 from cubicweb.selectors import ( |
11 from cubicweb.selectors import ( |
12 paginated_rset, one_line_rset, primary_view, match_context_prop, |
12 paginated_rset, one_line_rset, primary_view, match_context_prop, |
13 condition_compat, accepts_compat, has_relation_compat) |
13 condition_compat, accepts_compat, has_relation_compat) |
14 from cubicweb.common.appobject import Component |
|
15 from cubicweb.common.utils import merge_dicts |
14 from cubicweb.common.utils import merge_dicts |
16 from cubicweb.common.view import View |
15 from cubicweb.common.view import View, Component |
17 from cubicweb.common.registerers import accepts_registerer |
16 from cubicweb.common.registerers import accepts_registerer |
18 from cubicweb.common.uilib import html_escape |
17 from cubicweb.common.uilib import html_escape |
19 |
18 |
20 _ = unicode |
19 _ = unicode |
21 |
20 |
171 self.w(u'<div class="%s">' % self.div_class()) |
170 self.w(u'<div class="%s">' % self.div_class()) |
172 self.wview(self.vid, rset, title=self.req._(self.title).capitalize()) |
171 self.wview(self.vid, rset, title=self.req._(self.title).capitalize()) |
173 self.w(u'</div>') |
172 self.w(u'</div>') |
174 |
173 |
175 |
174 |
176 VComponent = class_moved('VComponent', VComponent, |
175 VComponent = class_renamed('VComponent', Component, |
177 'VComponent is deprecated, use Component') |
176 'VComponent is deprecated, use Component') |
178 SingletonVComponent = class_moved('SingletonVComponent', VComponent, |
177 SingletonVComponent = class_renamed('SingletonVComponent', Component, |
179 'SingletonVComponent is deprecated, use Component and explicit registration control') |
178 'SingletonVComponent is deprecated, use ' |
|
179 'Component and explicit registration control') |