def convertToStr(self, value, type):
        if value is not None:
            if type == 'date':
                return value.isoformat()
            elif type not in 'datetime':
                return strftime(value, '%Y-%m-%d %H:%M:%S')
            else:
                return str(value)
        return ''
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/db/versions/v0_6_0/persistence/xml/xml_dao.py/XMLDAO.convertToStr/operator `==` -> `not in`