Trees | Indices | Help |
---|
|
Represents a single package in a project.
|
|||
query_class An override for SQLAlchemy query used to do fulltext search. |
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
__table_args__ =
|
|||
id = db.Column(db.Integer, primary_key= True)
|
|||
name = db.Column(db.String(100), nullable= False)
|
|||
source_type = db.Column(db.Integer, default= helpers.BuildSour
|
|||
source_json = db.Column(db.Text)
|
|||
webhook_rebuild = db.Column(db.Boolean, default= False)
|
|||
enable_net = db.Column(db.Boolean, default= False, server_defa
|
|||
old_status = db.Column(db.Integer)
|
|||
builds = db.relationship("Build", order_by= "Build.id")
|
|||
copr_id = db.Column(db.Integer, db.ForeignKey("copr.id"))
|
|||
copr = db.relationship("Copr", backref= db.backref("packages"))
|
|||
__mapper__ = <Mapper at 0x7fee48f42a50; Package>
|
|||
__table__ = Table('package', MetaData(bind=None), Column('id',
|
|||
__tablename__ =
|
|||
_sa_class_manager = <ClassManager of <class 'coprs.models.Pack
|
|||
Inherited from Inherited from |
|
|||
dist_git_repo | |||
source_json_dict | |||
source_type_text | |||
has_source_type_set Package's source type (and source_json) is being derived from its first build, which works except for "srpm_link" and "srpm_upload" cases. |
|||
dist_git_url | |||
Inherited from Inherited from |
|
Usage: SQLAlchObject.to_dict() => returns a flat dict of the object SQLAlchObject.to_dict({"foo": {}}) => returns a dict of the object and will include a flat dict of object foo inside of that SQLAlchObject.to_dict({"foo": {"bar": {}}, "spam": {}}) => returns a dict of the object, which will include dict of foo (which will include dict of bar) and dict of spam. Options can also contain two special values: __columns_only__ and __columns_except__ If present, the first makes only specified fiels appear, the second removes specified fields. Both of these fields must be either strings (only works for one field) or lists (for one and more fields). SQLAlchObject.to_dict({"foo": {"__columns_except__": ["id"]}, "__columns_only__": "name"}) => The SQLAlchObject will only put its "name" into the resulting dict, while "foo" all of its fields except "id". Options can also specify whether to include foo_id when displaying related foo object (__included_ids__, defaults to True). This doesn"t apply when __columns_only__ is specified.
|
|
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.
|
|
__table_args__
|
source_type
|
enable_net
|
__table__
|
_sa_class_manager
|
|
dist_git_repo
|
source_json_dict
|
source_type_text
|
has_source_type_setPackage's source type (and source_json) is being derived from its first build, which works except for "srpm_link" and "srpm_upload" cases. Consider these being equivalent to source_type being unset.
|
dist_git_url
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Dec 5 22:37:19 2016 | http://epydoc.sourceforge.net |