equal
deleted
inserted
replaced
10 from warnings import warn |
10 from warnings import warn |
11 |
11 |
12 from logilab.common import interface |
12 from logilab.common import interface |
13 from logilab.common.compat import all |
13 from logilab.common.compat import all |
14 from logilab.common.decorators import cached |
14 from logilab.common.decorators import cached |
15 from logilab.common.deprecation import obsolete |
15 from logilab.common.deprecation import deprecated |
16 from logilab.mtconverter import TransformData, TransformError, xml_escape |
16 from logilab.mtconverter import TransformData, TransformError, xml_escape |
17 |
17 |
18 from rql.utils import rqlvar_maker |
18 from rql.utils import rqlvar_maker |
19 |
19 |
20 from cubicweb import Unauthorized |
20 from cubicweb import Unauthorized |
717 rql = '%s ORDERBY Z DESC WHERE X modification_date Z, %s' % args |
717 rql = '%s ORDERBY Z DESC WHERE X modification_date Z, %s' % args |
718 return rql |
718 return rql |
719 |
719 |
720 # generic vocabulary methods ############################################## |
720 # generic vocabulary methods ############################################## |
721 |
721 |
722 @obsolete('see new form api') |
722 @deprecated('see new form api') |
723 def vocabulary(self, rtype, role='subject', limit=None): |
723 def vocabulary(self, rtype, role='subject', limit=None): |
724 """vocabulary functions must return a list of couples |
724 """vocabulary functions must return a list of couples |
725 (label, eid) that will typically be used to fill the |
725 (label, eid) that will typically be used to fill the |
726 edition view's combobox. |
726 edition view's combobox. |
727 |
727 |