web.user.model.Action

Package web :: Package user :: Module model :: Class Action |
[hide private]
[frames] | no frames]

# Class Action

source code

    declarative_base() --+
                         |
                        Action

Instance Methods | [hide private]
__init__(self, name=u'', roles=None) | source code
__repr__(self) | source code

Class Methods | [hide private]
fields(self) | source code

Class Variables | [hide private]
| __tablename__ = `'action'`
| permissions = `Table('permissions', metadata, Column('role_id',`...``
| id = `Column(Integer, primary_key= True)`
| name = `Column(Unicode(120), unique= True)`
| roles = `relation('Role', secondary= permissions, backref= 'act`...``

Class Variable Details | [hide private]

  ### permissions Value:
      Table('permissions', metadata, Column('role_id', Integer, ForeignKey('
      role.id')), Column('action_id', Integer, ForeignKey('action.id')))

  ### roles Value:
      relation('Role', secondary= permissions, backref= 'actions')