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

Class Batch

source code


Instance Methods [hide private]
 
finished(self) source code
 
state(self) source code
 
assigned_projects(self)
Get a list (generator) of assigned projects
source code
 
can_assign_builds(self, user)
Check if USER has permissions to assign builds to this batch.
source code
Class Variables [hide private]
  id = db.Column(db.Integer, primary_key= True)
  blocked_by_id = db.Column(db.Integer, db.ForeignKey("batch.id"...
  blocked_by = db.relationship("Batch", remote_side= [id])
Method Details [hide private]

finished(self)

source code 
Decorators:
  • @property

state(self)

source code 
Decorators:
  • @property

assigned_projects(self)

source code 

Get a list (generator) of assigned projects

Decorators:
  • @property

can_assign_builds(self, user)

source code 

Check if USER has permissions to assign builds to this batch.  Since we
support cross-project batches, user is allowed to add a build to this
batch as long as:
- the batch has no builds yet (user has created a new batch now)
- the batch has at least one build which belongs to project where the
  user has build access


Class Variable Details [hide private]

blocked_by_id

Value:
db.Column(db.Integer, db.ForeignKey("batch.id"), nullable= True)