Package coprs :: Module models :: Class Krb5Login
[hide private]
[frames] | no frames]

Class Krb5Login

source code


Represents additional user information for kerberos authentication.

Nested Classes [hide private]

Inherited from flask_sqlalchemy.Model: query_class

Instance Methods [hide private]
 
__init__(self, **kwargs)
A simple constructor that allows initialization from kwargs.
source code

Inherited from unreachable.Model: query

Inherited from helpers.Serializer: to_dict

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __tablename__ = 'krb5_login'
  user_id = db.Column(db.Integer, db.ForeignKey("user.id"), null...
  config_name = db.Column(db.String(30), nullable= False, primar...
  primary = db.Column(db.String(80), nullable= False, primary_ke...
  user = db.relationship("User", backref= db.backref("krb5_login...
  __mapper__ = <Mapper at 0x7fee489dd910; Krb5Login>
  __table__ = Table('krb5_login', MetaData(bind=None), Column('u...
  _sa_class_manager = <ClassManager of <class 'coprs.models.Krb5...

Inherited from unreachable.Model: metadata

Inherited from unreachable.Model (private): _decl_class_registry

Properties [hide private]

Inherited from helpers.Serializer: serializable_attributes

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kwargs)
(Constructor)

source code 

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in ``kwargs``.

Only keys that are present as attributes of the instance's class are allowed. These could be, for example, any mapped columns or relationships.

Overrides: object.__init__

Class Variable Details [hide private]

user_id

Value:
db.Column(db.Integer, db.ForeignKey("user.id"), nullable= False)

config_name

Value:
db.Column(db.String(30), nullable= False, primary_key= True)

primary

Value:
db.Column(db.String(80), nullable= False, primary_key= True)

user

Value:
db.relationship("User", backref= db.backref("krb5_logins"))

__table__

Value:
Table('krb5_login', MetaData(bind=None), Column('user_id', Integer(), \
ForeignKey('user.id'), table=<krb5_login>, nullable=False), Column('co\
nfig_name', String(length=30), table=<krb5_login>, primary_key=True, n\
ullable=False), Column('primary', String(length=80), table=<krb5_login\
>, primary_key=True, nullable=False), schema=None)

_sa_class_manager

Value:
<ClassManager of <class 'coprs.models.Krb5Login'> at 7fee489e92a0>