Lines Matching refs:kwargs
135 def __TERuleMatch(self, Rule, **kwargs): argument
137 if ("scontext" in kwargs and
138 len(kwargs['scontext']) > 0 and
139 Rule.sctx not in kwargs['scontext']):
142 if ("tcontext" in kwargs and
143 len(kwargs['tcontext']) > 0 and
144 Rule.tctx not in kwargs['tcontext']):
147 if ("tclass" in kwargs and
148 len(kwargs['tclass']) > 0 and
149 not bool(set([Rule.tclass]) & kwargs['tclass'])):
152 if ("perms" in kwargs and
153 len(kwargs['perms']) > 0 and
154 not bool(Rule.perms & kwargs['perms'])):
187 def QueryTERule(self, **kwargs): argument
192 if ("scontext" in kwargs and len(kwargs['scontext']) > 0):
194 for sctx in kwargs['scontext']:
196 kwargs['scontext'] = scontext
197 if ("tcontext" in kwargs and len(kwargs['tcontext']) > 0):
199 for tctx in kwargs['tcontext']:
201 kwargs['tcontext'] = tcontext
203 if self.__TERuleMatch(Rule, **kwargs):
208 def QueryExpandedTERule(self, **kwargs): argument
212 if self.__TERuleMatch(Rule, **kwargs):