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

Class MockChroot

source code


Representation of mock chroot

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]
  id = db.Column(db.Integer, primary_key= True)
  os_release = db.Column(db.String(50), nullable= False)
  os_version = db.Column(db.String(50), nullable= False)
  arch = db.Column(db.String(50), nullable= False)
  is_active = db.Column(db.Boolean, default= True)
  __mapper__ = <Mapper at 0x7fee48ee3ed0; MockChroot>
  __table__ = Table('mock_chroot', MetaData(bind=None), Column('...
  __tablename__ = 'mock_chroot'
  _sa_class_manager = <ClassManager of <class 'coprs.models.Mock...

Inherited from unreachable.Model: metadata

Inherited from unreachable.Model (private): _decl_class_registry

Properties [hide private]
  name
Textual representation of name of this chroot
  name_release
Textual representation of name of this or release
  name_release_human
Textual representation of name of this or release
  os
Textual representation of the operating system name
  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]

__table__

Value:
Table('mock_chroot', MetaData(bind=None), Column('id', Integer(), tabl\
e=<mock_chroot>, primary_key=True, nullable=False), Column('os_release\
', String(length=50), table=<mock_chroot>, nullable=False), Column('os\
_version', String(length=50), table=<mock_chroot>, nullable=False), Co\
lumn('arch', String(length=50), table=<mock_chroot>, nullable=False), \
Column('is_active', Boolean(), table=<mock_chroot>, default=ColumnDefa\
ult(True)), schema=None)

_sa_class_manager

Value:
<ClassManager of <class 'coprs.models.MockChroot'> at 7fee48ed5990>

Property Details [hide private]

name

Textual representation of name of this chroot

Get Method:
unreachable.name(self) - Textual representation of name of this chroot

name_release

Textual representation of name of this or release

Get Method:
unreachable.name_release(self) - Textual representation of name of this or release

name_release_human

Textual representation of name of this or release

Get Method:
unreachable.name_release_human(self) - Textual representation of name of this or release

os

Textual representation of the operating system name

Get Method:
unreachable.os(self) - Textual representation of the operating system name

serializable_attributes

Get Method:
unreachable.serializable_attributes(self)