예제 #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
     )
예제 #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)