Equivalent to list(search(...)).
(self, credential_type, target=None, query=None, *, now=None)
| 289 | self.remove_at(at) |
| 290 | |
| 291 | def find(self, credential_type, target=None, query=None, *, now=None): |
| 292 | """Equivalent to list(search(...)).""" |
| 293 | warnings.warn( |
| 294 | "Use list(search(...)) instead to explicitly get a list.", |
| 295 | DeprecationWarning) |
| 296 | return list(self.search(credential_type, target=target, query=query, now=now)) |
| 297 | |
| 298 | def add(self, event, now=None): |
| 299 | """Handle a token obtaining event, and add tokens into cache.""" |