示例#1
0
文件: module.py 项目: dermorz/weboob
 def get_document(self, id):
     with self.browser:
         bill = self.browser.get_document(id)
     if not bill:
         raise DocumentNotFound()
     else:
         return bill
示例#2
0
 def get_document(self, id):
     return find_object(self.iter_documents(None),
                        id=id,
                        error=DocumentNotFound())