Example #1
0
 def get_list(self, args_list):
     if args_list:
         key_pattern = self.key_pattern
         key_list = [key_pattern%i for i in args_list]
         result = []
         for i in mc.get_list(key_list):
             if i is None:
                 result.append(i)
             else:
                 result.append(array(self.type).fromstring(i))
         return result
     else:
         return []
Example #2
0
 def get_list(self, args_list):
     key_pattern = self.key_pattern
     key_list = [key_pattern%i for i in args_list]
     result = mc.get_list(key_list)
     return result