Package bitten :: Module model :: Class BuildConfig

Class BuildConfig

object --+
         |
        BuildConfig

Representation of a build configuration.
Instance Methods
 
__init__(self, env, name=None, path=None, active=False, recipe=None, min_rev=None, max_rev=None, label=None, description=None)
Initialize a new build configuration with the specified attributes.
 
__repr__(self)
repr(x)
 
delete(self, db=None)
Remove a build configuration and all dependent objects from the database.
 
insert(self, db=None)
Insert a new configuration into the database.
 
update(self, db=None)
Save changes to an existing build configuration.
 
min_rev_time(self, env)
Returns the time of the minimum revision being built for this configuration.
 
max_rev_time(self, env)
Returns the time of the maximum revision being built for this configuration.

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

Class Methods
 
fetch(cls, env, name, db=None)
Retrieve an existing build configuration from the database by name.
 
select(cls, env, include_inactive=False, db=None)
Retrieve existing build configurations from the database that match the specified criteria.
Properties
  exists
Whether this configuration exists in the database
  resource
Build Config resource identification

Inherited from object: __class__

Method Details

__init__(self, env, name=None, path=None, active=False, recipe=None, min_rev=None, max_rev=None, label=None, description=None)
(Constructor)

 

Initialize a new build configuration with the specified attributes.

To actually create this configuration in the database, the insert method needs to be called.

Overrides: object.__init__

__repr__(self)
(Representation operator)

 
repr(x)
Overrides: object.__repr__
(inherited documentation)

min_rev_time(self, env)

 
Returns the time of the minimum revision being built for this configuration. Returns utcmin if not specified.

max_rev_time(self, env)

 
Returns the time of the maximum revision being built for this configuration. Returns utcmax if not specified.

Property Details

exists

Whether this configuration exists in the database
Get Method:
unreachable(self)

resource

Build Config resource identification
Get Method:
unreachable(self) - build