#NEWLINE# @ classmethod #NEWLINE# def cleanupAssociations( cls ) : #NEWLINE# #INDENT# cls . _log ( logging . DEBUG , 'NDBOpenIDStore: Querying datastore for OpenID associations.' ) #NEWLINE# query = cls . query ( ( cls . expiration_date <= datetime . datetime . now ( ) ) ) #NEWLINE# expired = query . fetch ( keys_only = True ) #NEWLINE# cls . _log ( logging . DEBUG , 'NDBOpenIDStore: Deleting expired OpenID associations from datastore.' ) #NEWLINE# ndb . delete_multi ( expired ) #NEWLINE# return len ( expired )