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

Class Module

source code


Nested Classes [hide private]

Inherited from flask_sqlalchemy.Model: query_class

Instance Methods [hide private]
 
repo_url(self, arch) source code
 
__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)
  name = db.Column(db.String(100), nullable= False)
  stream = db.Column(db.String(100), nullable= False)
  version = db.Column(db.Integer, nullable= False)
  summary = db.Column(db.String(100), nullable= False)
  description = db.Column(db.Text)
  created_on = db.Column(db.Integer, nullable= True)
  yaml_b64 = db.Column(db.Text)
  copr_id = db.Column(db.Integer, db.ForeignKey("copr.id"))
  copr = db.relationship("Copr", backref= db.backref("modules"))
  __mapper__ = <Mapper at 0x7fee489f8910; Module>
  __table__ = Table('module', MetaData(bind=None), Column('id', ...
  __tablename__ = 'module'
  _sa_class_manager = <ClassManager of <class 'coprs.models.Modu...

Inherited from unreachable.Model: metadata

Inherited from unreachable.Model (private): _decl_class_registry

Properties [hide private]
  yaml
  modulemd
  nsv
  full_name
  action

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]

__table__

Value:
Table('module', MetaData(bind=None), Column('id', Integer(), table=<mo\
dule>, primary_key=True, nullable=False), Column('name', String(length\
=100), table=<module>, nullable=False), Column('stream', String(length\
=100), table=<module>, nullable=False), Column('version', Integer(), t\
able=<module>, nullable=False), Column('summary', String(length=100), \
table=<module>, nullable=False), Column('description', Text(), table=<\
module>), Column('created_on', Integer(), table=<module>), Column('yam\
l_b64', Text(), table=<module>), Column('copr_id', Integer(), ForeignK\
...

_sa_class_manager

Value:
<ClassManager of <class 'coprs.models.Module'> at 7fee489e9ab8>

Property Details [hide private]

yaml

Get Method:
unreachable.yaml(self)

modulemd

Get Method:
unreachable.modulemd(self)

nsv

Get Method:
unreachable.nsv(self)

full_name

Get Method:
unreachable.full_name(self)

action

Get Method:
unreachable.action(self)