schema.py
author Christophe de Vienne <christophe@unlish.com>
Thu, 23 Oct 2014 17:30:15 +0200
changeset 11643 63d2c01fcb94
parent 11634 fa614537e5ee
permissions -rw-r--r--
Added tag cubicweb-pyramid-version-0.1.0, cubicweb-pyramid-debian-version-0.1.0-1 for changeset 3defbb0f147a

# pylint: disable-msg=E0611,F0401
from yams.buildobjs import EntityType, Bytes


class CWSession(EntityType):
    """
    Persistent session support

    Used by pyramid_cubiweb to store the session datas.

    It is a partial copy of the yet-to-integrate patch of cubicweb that
    provides cubicweb sessions persistency.

    While the same structure will be used by pyramid_cubicweb persistent
    sessions and Cubicweb persistent sessions, the two concepts are slightly
    different and will NOT co-exist in a single application.
    """

    __permissions__ = {
        'read':   (),
        'add':    (),
        'update': (),
        'delete': ()
    }

    cwsessiondata = Bytes()