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

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

src/l/i/lisa-server-0.1.1.31/lisa/server/plugins/PluginManager.py   lisa-server(Download)
                    rule.save()
 
                intent_list = Intent.objects(plugin=plugin)
                for oIntent in intent_list:
                    oIntent.enabled = True
                    rule.save()
 
                intent_list = Intent.objects(plugin=plugin)
                for oIntent in intent_list:
                    oIntent.enabled = False
                for rule in Rule.objects(plugin=plugin):
                    rule.delete()
                intent_list = Intent.objects(plugin=plugin)
                for oIntent in intent_list:
                    oIntent.delete()

src/l/i/lisa-server-0.1.1.31/lisa/server/core/intents.py   lisa-server(Download)
    def list(self, jsonInput):
        intentstr = []
        oWit = Wit(self.configuration)
        listintents = oWit.list_intents()
        for oIntent in oIntents.objects(enabled=True):