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

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

src/m/o/monscale-0.4/monscale/pypelib/persistence/backends/django/Django.py   monscale(Download)
	Implementes django model-based backend
'''
from .RuleModel import PolicyRuleModel
from .RuleTableModel import PolicyRuleTableModel
from pypelib.parsing.ParseEngine import ParseEngine
				if len(obj._ruleSet) != PolicyRuleModel.objects.all().count():
				    addRule = 1
				    ruleModel = PolicyRuleModel(RuleUUID = rule.rule.getUUID())
 
			ruleModel.RuleTableName = obj.name

src/d/j/django-thermostat-2.3/django_thermostat/pypelib/persistence/backends/django/Django.py   django-thermostat(Download)
	Implementes django model-based backend
'''
from .RuleModel import PolicyRuleModel
from .RuleTableModel import PolicyRuleTableModel
from pypelib.parsing.ParseEngine import ParseEngine
				if len(obj._ruleSet) != PolicyRuleModel.objects.all().count():
				    addRule = 1
				    ruleModel = PolicyRuleModel(RuleUUID = rule.rule.getUUID())
 
			ruleModel.RuleTableName = obj.name