Пример #1
0
 def is_arg_list(self, key_set):
     """ Does this key_set specify everything? """
     arg_list = []
     for param in self.params:
         if specifies_key(key_set, param):
             arg_list.append(key_set[param])
         else:
             return False
     return arg_list
Пример #2
0
 def contains(self, key_set):
     """ Given a key_set, returns whether it is contained in a subset provided by this token. """
     for i in self.provided_params:
         if not specifies_key(key_set, self.cache_obj.params[i]):
             return False
     return True