Ejemplo n.º 1
0
 def query(self):
     remember_navigation_history(self.request, self.context.id)
     query = DBSESSION().query(distinct(Business.id), Business)
     query = query.filter_by(project_id=self.current().id)
     return query
Ejemplo n.º 2
0
 def query(self):
     remember_navigation_history(self.request, self.context.id)
     query = DBSESSION().query(distinct(Business.id), Business)
     query = query.filter_by(project_id=self.current().id)
     return query
Ejemplo n.º 3
0
 def filter_project(self, query, appstruct):
     remember_navigation_history(self.request, self.context.id)
     self.populate_navigation()
     query = query.filter(Estimation.project_id == self.context.id)
     return query
Ejemplo n.º 4
0
 def filter_project(self, query, appstruct):
     remember_navigation_history(self.request, self.context.id)
     self.populate_navigation()
     query = query.filter(Task.project_id == self.context.id)
     return query