Exemplo n.º 1
0
 def credential_object(self, refresh):
     """Look up the Credential object that allows us to use
     the Overdrive API.
     """
     return Credential.lookup(
         self._db, DataSource.OVERDRIVE, None, None, refresh
     )
Exemplo n.º 2
0
 def credential_object(self, refresh):
     """Look up the Credential object that allows us to use
     the Odilo API.
     """
     return Credential.lookup(self._db, DataSource.ODILO, None, None,
                              refresh)