Esempio 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
     )
Esempio 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)