(obj)
return obj
Turn obj.value into a list of dates, datetimes, or
        (datetime, timedelta) tuples.
Turn obj.value into a list of dates, datetimes, or
        (datetime, timedelta) tuples.
Turn obj . value into a list of dates datetimes or ( datetime timedelta ) tuples .
def transformToNative(obj):
        """
        Turn obj.value into a list of dates, datetimes, or
        (datetime, timedelta) tuples.
        """
        if obj.isNative:
            return obj
        obj.isNative = True
        if obj.value == '':
            obj.value = []
            return obj
        tzinfo = getTzid(getattr(obj, 'tzid_param', None))
        valueParam = getattr(obj, 'value_param', "DATE-TIME").upper()
        valTexts = obj.value.split(",")
        if valueParam == "DATE":
            obj.value = [stringToDate(x) for x in valTexts]
        elif valueParam == "DATE-TIME":
            obj.value = [stringToDateTime(x, tzinfo) for x in valTexts]
        elif valueParam == "PERIOD":
            obj.value = [stringToPeriod(x, tzinfo) for x in valTexts]
        return obj
def transformToNative ( obj ) : if obj . isNative : return obj obj . isNative = True if obj . value == '' : obj . value = [ ] return obj tzinfo = getTzid ( getattr ( obj , 'tzid_param' , None ) ) valueParam = getattr ( obj , 'value_param' , "DATE-TIME" ) . upper ( ) valTexts = obj . value . split ( "," ) if valueParam == "DATE" : obj . value = [ stringToDate ( x ) for x in valTexts ] elif valueParam == "DATE-TIME" : obj . value = [ stringToDateTime ( x , tzinfo ) for x in valTexts ] elif valueParam == "PERIOD" : obj . value = [ stringToPeriod ( x , tzinfo ) for x in valTexts ] return obj