def specifications(self, user, sort=None, quantity=None, filter=None, series=None, need_people=True, need_branches=True, need_workitems=False): """See `IHasSpecifications`.""" base_clauses = [ Specification.productID == Product.id, Product.projectgroupID == self.id ] tables = [Specification] if series: base_clauses.append(ProductSeries.name == series) tables.append( Join(ProductSeries, Specification.productseriesID == ProductSeries.id)) return search_specifications(self, base_clauses, user, sort, quantity, filter, tables=tables, need_people=need_people, need_branches=need_branches, need_workitems=need_workitems)
def specifications(self, user, sort=None, quantity=None, filter=None, need_people=True, need_branches=True, need_workitems=False): from lp.blueprints.model.specificationsearch import ( search_specifications) return search_specifications( self, [], user, sort, quantity, filter, need_people=need_people, need_branches=need_branches, need_workitems=need_workitems)
def specifications(self, user, sort=None, quantity=None, filter=None, need_people=True, need_branches=True, need_workitems=False): from lp.blueprints.model.specificationsearch import ( search_specifications) return search_specifications( self, [], user, sort, quantity, filter, need_people=need_people, need_branches=need_branches, need_workitems=need_workitems)
def specifications(self, user, sort=None, quantity=None, filter=None, series=None, need_people=True, need_branches=True, need_workitems=False): """See `IHasSpecifications`.""" base_clauses = [ Specification.productID == Product.id, Product.projectID == self.id] tables = [Specification] if series: base_clauses.append(ProductSeries.name == series) tables.append( Join(ProductSeries, Specification.productseriesID == ProductSeries.id)) return search_specifications( self, base_clauses, user, sort, quantity, filter, tables=tables, need_people=need_people, need_branches=need_branches, need_workitems=need_workitems)
def specifications(self, user, sort=None, quantity=None, filter=None, need_people=True, need_branches=True, need_workitems=False): """See IHasSpecifications. The rules for filtering are that there are three areas where you can apply a filter: - acceptance, which defaults to ACCEPTED if nothing is said, - completeness, which defaults to showing BOTH if nothing is said - informational, which defaults to showing BOTH if nothing is said """ base_clauses = [Specification.productseriesID == self.id] return search_specifications( self, base_clauses, user, sort, quantity, filter, default_acceptance=True, need_people=need_people, need_branches=need_branches, need_workitems=need_workitems)