コード例 #1
0
ファイル: relplan.py プロジェクト: enricobacis/jupiter-py
 def _plans_tablescan(self, node):
     tbl = node.get('table')[1]
     profile = Profile.build(node, None)
     for server in [s for s in self._servers if tbl in s.tables]:
         authorized = self._servers.authorize(profile, server.id)
         if authorized:
             yield self.makeplan(node, [], server, authorized)
コード例 #2
0
ファイル: relplan.py プロジェクト: enricobacis/jupiter-py
 def _plans_tablescan(self, node):
     tbl = node.get('table')[1]
     profile = Profile.build(node, None)
     for server in [s for s in self._servers if tbl in s.tables]:
         authorized = self._servers.authorize(profile, server.id)
         if authorized:
             yield self.makeplan(node, [], server, authorized)
コード例 #3
0
ファイル: relplan.py プロジェクト: enricobacis/jupiter-py
 def _plans_default(self, node, servers=None):
     for inputplans in product(*map(self.get_plans, node.inputs)):
         profile = Profile.build(node, inputplans)
         for server in servers or self._servers:
             authorized = self._servers.authorize(profile, server.id)
             if authorized:
                 yield self.makeplan(node, inputplans, server, authorized)
コード例 #4
0
ファイル: relplan.py プロジェクト: enricobacis/jupiter-py
 def _plans_default(self, node, servers=None):
     for inputplans in product(*map(self.get_plans, node.inputs)):
         profile = Profile.build(node, inputplans)
         for server in servers or self._servers:
             authorized = self._servers.authorize(profile, server.id)
             if authorized:
                 yield self.makeplan(node, inputplans, server, authorized)