Lines Matching refs:kwargs
150 def __TERuleMatch(self, Rule, **kwargs): argument
152 if ("scontext" in kwargs and
153 len(kwargs['scontext']) > 0 and
154 Rule.sctx not in kwargs['scontext']):
157 if ("tcontext" in kwargs and
158 len(kwargs['tcontext']) > 0 and
159 Rule.tctx not in kwargs['tcontext']):
162 if ("tclass" in kwargs and
163 len(kwargs['tclass']) > 0 and
164 not bool(set([Rule.tclass]) & kwargs['tclass'])):
167 if ("perms" in kwargs and
168 len(kwargs['perms']) > 0 and
169 not bool(Rule.perms & kwargs['perms'])):
202 def QueryTERule(self, **kwargs): argument
207 if ("scontext" in kwargs and len(kwargs['scontext']) > 0):
209 for sctx in kwargs['scontext']:
211 kwargs['scontext'] = scontext
212 if ("tcontext" in kwargs and len(kwargs['tcontext']) > 0):
214 for tctx in kwargs['tcontext']:
216 kwargs['tcontext'] = tcontext
218 if self.__TERuleMatch(Rule, **kwargs):
223 def QueryExpandedTERule(self, **kwargs): argument
227 if self.__TERuleMatch(Rule, **kwargs):