Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/h/t/HTSQL-2.3.3/src/htsql/tweak/shell/command.py   HTSQL(Download)
            values.append(value)
        can_read, can_write = values
        with context.env(can_read=context.env.can_read and can_read,
                         can_write=context.env.can_write and can_write):
            query = recognize(query)
    def __call__(self):
        can_read = context.env.can_read and self.command.can_read
        can_write = context.env.can_write and self.command.can_write
        with context.env(can_read=can_read, can_write=can_write):
            return act(self.command.command, self.action)

src/h/t/HTSQL-2.3.3/src/htsql/tweak/meta/command.py   HTSQL(Download)
        slave_app = get_slave_app()
        with slave_app:
            with context.env(can_read=context.env.can_read and can_read,
                             can_write=context.env.can_write and can_write):
                return act(self.command.command, self.action)