예제 #1
0
파일: store.py 프로젝트: undeadinu/pinball
 def commit_tokens(self, updates=None, deletes=None):
     updates = updates if updates is not None else []
     deletes = deletes if deletes is not None else []
     for token in updates:
         token_model = ActiveTokenModel.from_token(token)
         token_model.save()
     for token in deletes:
         token_model = ActiveTokenModel.from_token(token)
         token_model.delete()
예제 #2
0
파일: store.py 프로젝트: Betterment/pinball
 def commit_tokens(self, updates=None, deletes=None):
     updates = updates if updates is not None else []
     deletes = deletes if deletes is not None else []
     for token in updates:
         token_model = ActiveTokenModel.from_token(token)
         token_model.save()
     for token in deletes:
         token_model = ActiveTokenModel.from_token(token)
         token_model.delete()
예제 #3
0
파일: store.py 프로젝트: undeadinu/pinball
 def archive_tokens(self, tokens):
     for token in tokens:
         active_token_model = ActiveTokenModel.from_token(token)
         active_token_model.delete()
         archived_token_model = ArchivedTokenModel.from_token(token)
         archived_token_model.save()
예제 #4
0
파일: store.py 프로젝트: Betterment/pinball
 def archive_tokens(self, tokens):
     for token in tokens:
         active_token_model = ActiveTokenModel.from_token(token)
         active_token_model.delete()
         archived_token_model = ArchivedTokenModel.from_token(token)
         archived_token_model.save()