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 |
24 from cStringIO import StringIO |
24 from cStringIO import StringIO |
25 from warnings import warn |
25 from warnings import warn |
26 from functools import partial |
26 from functools import partial |
27 |
27 |
28 from logilab.common.deprecation import deprecated |
28 from logilab.common.deprecation import deprecated |
|
29 from logilab.common.registry import classid, yes |
29 from logilab.mtconverter import xml_escape |
30 from logilab.mtconverter import xml_escape |
30 |
31 |
31 from rql import nodes |
32 from rql import nodes |
32 |
33 |
33 from cubicweb import NotAnEntity |
34 from cubicweb import NotAnEntity |
34 from cubicweb.selectors import yes, non_final_entity, nonempty_rset, none_rset |
35 from cubicweb.predicates import non_final_entity, nonempty_rset, none_rset |
35 from cubicweb.appobject import AppObject |
36 from cubicweb.appobject import AppObject |
36 from cubicweb.utils import UStringIO, HTMLStream |
37 from cubicweb.utils import UStringIO, HTMLStream |
37 from cubicweb.uilib import domid, js |
38 from cubicweb.uilib import domid, js |
38 from cubicweb.schema import display_name |
39 from cubicweb.schema import display_name |
39 from cubicweb.vregistry import classid |
|
40 |
40 |
41 # robots control |
41 # robots control |
42 NOINDEX = u'<meta name="ROBOTS" content="NOINDEX" />' |
42 NOINDEX = u'<meta name="ROBOTS" content="NOINDEX" />' |
43 NOFOLLOW = u'<meta name="ROBOTS" content="NOFOLLOW" />' |
43 NOFOLLOW = u'<meta name="ROBOTS" content="NOFOLLOW" />' |
44 |
44 |