# -*- coding: utf-8 -*-""" harvest_tools.msgcollection"""fromgluon.storageimportStorageclassMsgCollection(Storage):"""Message for a collection. The class contains five public attributes: - C{error}: error when scanning the collection - C{found}: number of publication found in the harvester repository - C{url}: URL used to scan the harvester repository, returning a list ids. - C{title}: title of the collection """def__init__(self,error="",found=0,title="",url=""):Storage.__init__(self)self.error=errorself.found=foundself.title=titleself.url=urldefurl_hb(self):""" @rtype: str @return: the URL return a list of record in readable format. """returnself.url.replace("of=id","of=hb")