# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1235035177 -3600 # Node ID 931e0dac47f029d72b1c9fc97f0c56d0da46adac # Parent 2ca048a43240b8aed52f9ea036cb4f3c9bb6a3b1 type -> etype diff -r 2ca048a43240 -r 931e0dac47f0 selectors.py --- a/selectors.py Wed Feb 18 22:37:13 2009 +0100 +++ b/selectors.py Thu Feb 19 10:19:37 2009 +0100 @@ -941,10 +941,6 @@ @lltrace def etype_rtype_selector(cls, req, rset, row=None, col=0, **kwargs): - """only check if the user has read access on the entity's type refered - by the .etype attribute and on the relations's type refered by the - .rtype attribute if set. - """ schema = cls.schema perm = getattr(cls, 'require_permission', 'read') if hasattr(cls, 'etype'): @@ -1044,7 +1040,7 @@ def has_relation_compat(registered): def plug_selector(cls, vreg): cls = registered(cls, vreg) - if getattr(cls, 'type', None): + if getattr(cls, 'etype', None): warn('use relation_possible selector instead of using etype_rtype', DeprecationWarning) cls.__select__ &= relation_possible(cls.rtype, role(cls),