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

_BoundDeclarativeMeta 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

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 0xb412e670; 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

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: unreachable.Model.__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 b4130458>

Property Details [hide private]

yaml

modulemd

nsv

full_name

action