Package bitten :: Module model :: Class BuildLog

Class BuildLog

object --+
         |
        BuildLog

Represents a build log.
Instance Methods
 
__init__(self, env, build=None, step=None, generator=None, orderno=None, filename=None)
Initialize a new build log with the specified attributes.
 
get_log_file(self, filename)
Returns the full path to the log file
 
delete(self, db=None)
Remove the build log from the database.
 
insert(self, db=None)
Insert a new build log into the database.

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

Class Methods
 
fetch(cls, env, id, db=None)
Retrieve an existing build from the database by ID.
 
select(cls, env, build=None, step=None, generator=None, db=None)
Retrieve existing build logs from the database that match the specified criteria.
Class Variables
  DEBUG = 'D'
  INFO = 'I'
  WARNING = 'W'
  ERROR = 'E'
  UNKNOWN = ''
  LEVELS_SUFFIX = '.levels'
Properties
  exists
Whether this build log exists in the database

Inherited from object: __class__

Method Details

__init__(self, env, build=None, step=None, generator=None, orderno=None, filename=None)
(Constructor)

 

Initialize a new build log with the specified attributes.

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

Overrides: object.__init__

Property Details

exists

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