equal
deleted
inserted
replaced
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 |
36 _ = unicode |
36 _ = unicode |
37 |
37 |
38 from warnings import warn |
38 from warnings import warn |
39 |
39 |
40 from logilab.mtconverter import xml_escape |
40 from logilab.mtconverter import xml_escape |
|
41 from logilab.common.registry import yes |
41 |
42 |
42 from cubicweb import tags, uilib |
43 from cubicweb import tags, uilib |
43 from cubicweb.appobject import AppObject |
44 from cubicweb.appobject import AppObject |
44 from cubicweb.selectors import is_instance, yes |
45 from cubicweb.predicates import is_instance |
45 from cubicweb.utils import json_dumps, support_args |
46 from cubicweb.utils import json_dumps, support_args |
46 from cubicweb.web import eid_param, formwidgets as fwdgs |
47 from cubicweb.web import eid_param, formwidgets as fwdgs |
47 |
48 |
48 |
49 |
49 def checkbox(name, value, attrs='', checked=None): |
50 def checkbox(name, value, attrs='', checked=None): |