Exemplo n.º 1
0
    def get_list(self, name, val_func='auto'):
        """Parse value with key=name and transform it to list.
        If val_vun

        :param str name:
        :param func val_func:
        :return:
        """
        return parse_list(self.get(name, ''), val_func)
Exemplo n.º 2
0
    def get_list(self, name, val_func='auto'):
        """Parse value with key=name and transform it to list.
        If val_vun

        :param str name:
        :param func val_func:
        :return:
        """
        return parse_list(self.get(name, ''), val_func)
Exemplo n.º 3
0
 def _to_python(self, value):
     if self.value_type:
         return parse_list(value, self.value_type._to_python)
     else:
         return parse_list(value, self.val_func)
Exemplo n.º 4
0
 def _to_python(self, value):
     if self.value_type:
         return parse_list(value, self.value_type._to_python)
     else:
         return parse_list(value, self.val_func)