def get_url(self):
        resource = self.get_resource()
        url_attribute = getattr(resource, 'url_attribute', 'url')
        try:
            url = getattr(self, url_attribute)
        except __HOLE__:
            return resource.collection.get_element_url(getattr(self, resource.id_attribute))
        return url
dataset/ETHPy150Open transcode-de/durga/durga/element.py/Element.get_url