Exemplo n.º 1
0
 def get_prios(self):
     '''
     Get all priorities for a given domain.
     '''
     sf = Flow.filter(self.rd, domain=self.domain.name)
     return sorted(set(s['priority'] for s in sf))
Exemplo n.º 2
0
 def get_flows(self, **condition):
     """all flows under this domain
     """
     flows = Flow.filter(self.rd, domain=self.domain.name,
                         priority=self.prio, **condition)
     return flows
Exemplo n.º 3
0
 def get_all_flows(self):
     '''get all flow ids'''
     return Flow.filter(self.rd)