code cleanup
This commit is contained in:
parent
db8a773f19
commit
0f952b0277
|
@ -1,7 +1,3 @@
|
|||
#from quixote.session import Session
|
||||
from quixote.html import htmltext
|
||||
import users
|
||||
|
||||
import random
|
||||
|
||||
import qommon.sessions
|
||||
|
@ -17,6 +13,7 @@ class BasicSession(Session):
|
|||
return self.anonymous_key or self.tempfiles or \
|
||||
self.magictokens or Session.has_info(self)
|
||||
is_dirty = has_info
|
||||
|
||||
def get_anonymous_key(self, generate = False):
|
||||
if self.anonymous_key:
|
||||
return self.anonymous_key
|
||||
|
|
Loading…
Reference in New Issue