'A fake fetcher for dataurl'

def data_fetch(self, url, task):

    self.on_fetch(u'data', task)
    result = {}
    result[u'orig_url'] = url
    result[u'content'] = dataurl.decode(url)
    result[u'headers'] = {}
    result[u'status_code'] = 200
    result[u'url'] = url
    result[u'cookies'] = {}
    result[u'time'] = 0
    result[u'save'] = task.get(u'fetch', {}).get(u'save')
    if (len(result[u'content']) < 70):
        logger.info(u'[200]    %s:%s    %s    0s', task.get(u'project'), task.get(u'taskid'), url)
    else:
        logger.info(u'[200]    %s:%s    data:,%s...[content:%d]    0s', task.get(u'project'), task.get(u'taskid'), result[u'content'][:70], len(result[u'content']))
    return result
