test/data/rrqlexpr_on_eetype.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 19 Feb 2010 09:36:26 +0100
branchstable
changeset 4644 021035b9a7ab
parent 4252 6c4f109c2b03
child 5421 8167de96c523
permissions -rw-r--r--
introduce 'go back' transition: transition without destination state will go to the state we were coming from

"""

:organization: Logilab
:copyright: 2001-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
"""
from yams.buildobjs import EntityType, String
from cubicweb.schema import RRQLExpression

class ToTo(EntityType):
    __permissions__ = {
        'read': ('managers', RRQLExpression('S bla Y'),),
        'add': ('managers',),
        'update': ('managers',),
        'delete': ('managers',),
        }
    attr = String()