equal
deleted
inserted
replaced
12 from logilab.mtconverter import TransformData, TransformError, html_escape |
12 from logilab.mtconverter import TransformData, TransformError, html_escape |
13 |
13 |
14 from rql.utils import rqlvar_maker |
14 from rql.utils import rqlvar_maker |
15 |
15 |
16 from cubicweb import Unauthorized |
16 from cubicweb import Unauthorized |
17 from cubicweb.vregistry import autoselectors |
|
18 from cubicweb.rset import ResultSet |
17 from cubicweb.rset import ResultSet |
19 from cubicweb.selectors import yes |
18 from cubicweb.selectors import yes |
20 from cubicweb.appobject import AppRsetObject |
19 from cubicweb.appobject import AppRsetObject |
21 from cubicweb.schema import RQLVocabularyConstraint, RQLConstraint, bw_normalize_etype |
20 from cubicweb.schema import RQLVocabularyConstraint, RQLConstraint, bw_normalize_etype |
22 from cubicweb.common.registerers import id_registerer |
21 from cubicweb.common.registerers import id_registerer |
170 def is_inlined(self, rtype, targettype=None, role='subject'): |
169 def is_inlined(self, rtype, targettype=None, role='subject'): |
171 # return set(('primary', 'secondary')) & self.get_tags(rtype, targettype) |
170 # return set(('primary', 'secondary')) & self.get_tags(rtype, targettype) |
172 return 'inlineview' in self.get_tags(rtype, targettype, role) |
171 return 'inlineview' in self.get_tags(rtype, targettype, role) |
173 |
172 |
174 |
173 |
175 class metaentity(autoselectors): |
174 class metaentity(type): |
176 """this metaclass sets the relation tags on the entity class |
175 """this metaclass sets the relation tags on the entity class |
177 and deals with the `widgets` attribute |
176 and deals with the `widgets` attribute |
178 """ |
177 """ |
179 def __new__(mcs, name, bases, classdict): |
178 def __new__(mcs, name, bases, classdict): |
180 # collect baseclass' rtags |
179 # collect baseclass' rtags |