Ejemplo n.º 1
0
 async def stor(self, sops):
     '''
     Execute a series of storage operations.
     '''
     for oper in sops:
         func = self._stor_funcs.get(oper[0])
         if func is None:
             raise s_exc.NoSuchStor(name=oper[0])
         await func(oper)
Ejemplo n.º 2
0
    async def stor(self, sops, splices=None):
        '''
        Execute a series of storage operations.
        '''
        for oper in sops:
            func = self._stor_funcs.get(oper[0])
            if func is None:  # pragma: no cover
                raise s_exc.NoSuchStor(name=oper[0])
            await func(oper)

        if splices:
            await self._storFireSplices(splices)
Ejemplo n.º 3
0
    async def stor(self, sops, splices=None):
        '''
        Execute a series of storage operations.

        Overrides implementation in layer.py to avoid unnecessary async calls.
        '''
        for oper in sops:
            func = self._stor_funcs.get(oper[0])
            if func is None:  # pragma: no cover
                raise s_exc.NoSuchStor(name=oper[0])
            func(oper)

        if splices:
            await self._storFireSplices(splices)