Package multivac :: Class Project
[hide private]
[frames] | no frames]

Class Project

source code


Mapping class for the table «project».

Instance Methods [hide private]
int
id(self)
Read only accessor to prevent setting this field.
source code
str
__repr__(self)
Returns a printable representation of this instance.
source code
str
__str__(self)
Coerces this instance to a string.
source code

Inherited from ORM_Base: __init__

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

Class Methods [hide private]
Query<Project>
query_tags(cls, session, tags={})
Overriden query method to apply tag-based custom filtering, on top of common equality filter.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

id(self)

source code 

Read only accessor to prevent setting this field.

Returns: int
Surrogate primary key
Decorators:
  • @hybrid_property

query_tags(cls, session, tags={})
Class Method

source code 

Overriden query method to apply tag-based custom filtering, on top of common equality filter.

Parameters:
  • session (Session) - The database session in which to execute the query
  • tags (dict) - Tag names and values to apply as a filter
Returns: Query<Project>
A query selecting Project instances, filtered by tags

__repr__(self)
(Representation operator)

source code 

Returns a printable representation of this instance.

Returns: str
A descriptive string containing most of this instance fields
Overrides: object.__repr__

__str__(self)
(Informal representation operator)

source code 

Coerces this instance to a string.

Returns: str
The name field
Overrides: object.__str__