[tor-commits] [pups/production] removed Token.get_token()

colin at torproject.org colin at torproject.org
Fri Oct 24 03:44:56 UTC 2014


commit 3ef9187c2792162883e472fbd15f2c8f7644fe56
Author: Sherief Alaa <sheriefalaa.w at gmail.com>
Date:   Sun Jun 22 00:52:50 2014 +0300

    removed Token.get_token()
---
 webchat/models.py |    7 -------
 1 file changed, 7 deletions(-)

diff --git a/webchat/models.py b/webchat/models.py
index 6722aa1..8d25021 100644
--- a/webchat/models.py
+++ b/webchat/models.py
@@ -54,13 +54,6 @@ class Token(models.Model):
         return q.t_id is not None
 
     @staticmethod
-    def get_token(self, token):
-        try:
-            return Token.objects.get(token=token)
-        except ObjectDoesNotExist:
-            return []
-
-    @staticmethod
     def revoke_tokens(token_list):
         '''
         Sets the expiration date equals to the creation date of a token or more





More information about the tor-commits mailing list