1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
57 from logilab.common.graph import has_path |
57 from logilab.common.graph import has_path |
58 from logilab.common.decorators import cached, cachedproperty |
58 from logilab.common.decorators import cached, cachedproperty |
59 from logilab.common.date import datetime2ticks, ustrftime, ticks2datetime |
59 from logilab.common.date import datetime2ticks, ustrftime, ticks2datetime |
60 from logilab.common.compat import all |
60 from logilab.common.compat import all |
61 from logilab.common.deprecation import deprecated |
61 from logilab.common.deprecation import deprecated |
|
62 from logilab.common.registry import yes |
62 |
63 |
63 from rql import nodes, utils |
64 from rql import nodes, utils |
64 |
65 |
65 from cubicweb import Unauthorized, typed_eid |
66 from cubicweb import Unauthorized, typed_eid |
66 from cubicweb.schema import display_name |
67 from cubicweb.schema import display_name |
67 from cubicweb.uilib import css_em_num_value |
68 from cubicweb.uilib import css_em_num_value |
68 from cubicweb.utils import make_uid |
69 from cubicweb.utils import make_uid |
69 from cubicweb.selectors import match_context_prop, partial_relation_possible, yes |
70 from cubicweb.predicates import match_context_prop, partial_relation_possible |
70 from cubicweb.appobject import AppObject |
71 from cubicweb.appobject import AppObject |
71 from cubicweb.web import RequestError, htmlwidgets |
72 from cubicweb.web import RequestError, htmlwidgets |
72 |
73 |
73 |
74 |
74 def rtype_facet_title(facet): |
75 def rtype_facet_title(facet): |