[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 3ef9187c2792162883e472fbd15f2c8f7644fe56
Author: Sherief Alaa <sheriefalaa.w@xxxxxxxxx>
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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits