Пример #1
0
    def to_one_str(cls, value, *args, **kwargs):
        """string化的单个record对象
        """
        if kwargs.get('wrapper'):
            return cls._wrapper_to_one_str(value)

        return _es.to_dict_str(value)
Пример #2
0
    def to_one_str(cls, value, *args, **kwargs):
        """Convert single record's values to str
        """
        if kwargs.get('wrapper'):
            return cls._wrapper_to_one_str(value)

        return _es.to_dict_str(value)
Пример #3
0
    def to_one_str(cls, value, *args, **kwargs):
        """string化的单个record对象
        """
        if kwargs.get('wrapper'):
            return cls._wrapper_to_one_str(value)

        return _es.to_dict_str(value)
Пример #4
0
    def to_one_str(cls, value, *args, **kwargs):
        """Convert single record's values to str
        """
        if kwargs.get('wrapper'):
            return cls._wrapper_to_one_str(value)

        return _es.to_dict_str(value)
Пример #5
0
 def _wrapper_to_one_str(value):
     return _es.to_dict_str(value)
Пример #6
0
 def test_to_dict_str(self):
     self.check_value_type(es.to_dict_str(self.record))
Пример #7
0
 def _wrapper_to_one_str(value):
     return _es.to_dict_str(value)
Пример #8
0
 def test_to_dict_str(self):
     self.check_value_type(es.to_dict_str(self.record))