# -*- coding: utf-8 -*- """ harvest_tools.msgcollection """ from gluon.storage import Storage class MsgCollection(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 = error self.found = found self.title = title self.url = url def url_hb(self): """ @rtype: str @return: the URL return a list of record in readable format. """ return self.url.replace("of=id", "of=hb")