web.user.model.Role

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

# Class Role

source code

    declarative_base() --+
                         |
                        Role

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

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

Class Variables | [hide private]
| __tablename__ = `'role'`
| id = `Column(Integer, primary_key= True)`
| name = `Column(Unicode(60), unique= True)`
| user_role = `Table('user_role', metadata, Column('user_id', Int`...``
| users = `relation('User', secondary= user_role, backref= 'roles')`

Class Variable Details | [hide private]

  ### user_role Value:
      Table('user_role', metadata, Column('user_id', Integer, ForeignKey('us
      er.id')), Column('role_id', Integer, ForeignKey('role.id')))