X-Git-Url: https://git.tld-linux.org/?p=tld-ftp-admin.git;a=blobdiff_plain;f=modules%2Fuser.py;fp=modules%2Fuser.py;h=7f4195863a0bd0b9de02f8deca312d8ec5a89ff8;hp=2b31f1a8c9b70a00cba04480cc1e584e4ad899a5;hb=51b9814081f743180ffed6c80fd7945acb554ce2;hpb=f7b22268ab563fa906be0653d037f1805e220e5c diff --git a/modules/user.py b/modules/user.py index 2b31f1a..7f41958 100644 --- a/modules/user.py +++ b/modules/user.py @@ -1,5 +1,7 @@ # vi: encoding=utf-8 ts=8 sts=4 sw=4 et +from __future__ import print_function + import Cookie, time, ftpio UserNotLoggedIn="UserNotLoggedIn" @@ -31,8 +33,8 @@ class User: #C['ftpsessid']['expires']=time.strftime( #"%a, %d-%b-%y %H:%M:%S GMT", #time.gmtime(time.time()+86400)) - print C - + print(C) + def logout(self): self.loggedin=False ftpio.logout() @@ -40,5 +42,5 @@ class User: C['ftpsessid']='' C['ftpsessid']['expires']=time.strftime("%a, %d-%b-%y %H:%M:%S GMT", time.gmtime(time.time()-31536000)) - print C + print(C)