def fetch_by_url(self, url):
        """
        Gets service for given ``url`` from mongodb storage.
        """
        service = self.collection.find_one({'url': url})
        if not service:
            raise ServiceNotFound
        return Service(service)
def fetch_by_url(self, url):
        """
        Gets service for given ``url`` from mongodb storage.
        """
        service = self.collection.find_one({'url': url})
        if not service:
            raise ServiceNotFound
        return Service(service)
def fetch_by_url ( self , url ) : service = self . collection . find_one ( { 'url' : url } ) if not service : raise ServiceNotFound return Service ( service )
Gets service for given ``url`` from mongodb storage.
Gets service for given url from mongodb storage .