17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
18 """Specific views for data sources and related entities (eg CWSource, |
18 """Specific views for data sources and related entities (eg CWSource, |
19 CWSourceHostConfig, CWSourceSchemaConfig). |
19 CWSourceHostConfig, CWSourceSchemaConfig). |
20 """ |
20 """ |
21 |
21 |
22 __docformat__ = "restructuredtext en" |
22 import logging |
|
23 |
|
24 from six.moves import range |
|
25 |
|
26 from logilab.common.decorators import cachedproperty |
|
27 |
23 from cubicweb import _ |
28 from cubicweb import _ |
24 |
|
25 import logging |
|
26 from itertools import repeat |
|
27 |
|
28 from six.moves import range |
|
29 |
|
30 from logilab.mtconverter import xml_escape |
|
31 from logilab.common.decorators import cachedproperty |
|
32 |
|
33 from cubicweb import Unauthorized, tags |
29 from cubicweb import Unauthorized, tags |
34 from cubicweb.utils import make_uid |
30 from cubicweb.utils import make_uid |
35 from cubicweb.predicates import (is_instance, score_entity, has_related_entities, |
31 from cubicweb.predicates import (is_instance, score_entity, has_related_entities, |
36 match_user_groups, match_kwargs, match_view, one_line_rset) |
32 match_user_groups, match_kwargs, match_view, one_line_rset) |
37 from cubicweb.view import EntityView, StartupView |
33 from cubicweb.view import EntityView, StartupView |
38 from cubicweb.schema import META_RTYPES, VIRTUAL_RTYPES, display_name |
|
39 from cubicweb.web import Redirect, formwidgets as wdgs, facet, action |
34 from cubicweb.web import Redirect, formwidgets as wdgs, facet, action |
40 from cubicweb.web.views import add_etype_button |
35 from cubicweb.web.views import add_etype_button |
41 from cubicweb.web.views import (uicfg, tabs, actions, ibreadcrumbs, navigation, |
36 from cubicweb.web.views import (uicfg, tabs, actions, ibreadcrumbs, navigation, |
42 tableview, pyviews) |
37 tableview, pyviews) |
43 |
38 |