Commits

kgk committed 8b76085

allow token parameter to be a list or a preformed string

  • Participants
  • Parent commits 7f90a96

Comments (0)

Files changed (1)

File paste/auth/auth_tkt.py

         self.secret = secret
         self.userid = userid
         self.ip = ip
-        self.tokens = ','.join(tokens)
+        if not isinstance(tokens, basestring):
+            tokens = ','.join(tokens)
+        self.tokens = tokens
         self.user_data = user_data
         if time is None:
             self.time = time_mod.time()