This commit is contained in:
mdipierro
2014-09-06 23:09:44 -05:00
parent 4bcd905f4f
commit 99087ab37a
4 changed files with 16 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
## 2.9.6-2.9.7
## 2.9.6 - 2.9.8
- fixed support of GAE + SQL
- fixed a typo in the license of some login_methods code. It is now LGPL consistently with the rest of the web2py code. This change applied to all previous web2py versions.
+1 -1
View File
@@ -30,7 +30,7 @@ update:
echo "remember that pymysql was tweaked"
src:
### Use semantic versioning
echo 'Version 2.9.7-stable+timestamp.'`date +%Y.%m.%d.%H.%M.%S` > VERSION
echo 'Version 2.9.8-stable+timestamp.'`date +%Y.%m.%d.%H.%M.%S` > VERSION
### rm -f all junk files
make clean
### clean up baisc apps
+1 -1
View File
@@ -1 +1 @@
Version 2.9.7-stable+timestamp.2014.09.06.22.57.21
Version 2.9.8-stable+timestamp.2014.09.06.23.09.41
+13 -2
View File
@@ -29,6 +29,12 @@ Typical usage:
"""
from __future__ import with_statement
import sys
import os
print os.path.join(*__file__.split(os.sep)[:-2] or ['.'])
sys.path.append(os.path.join(*__file__.split(os.sep)[:-2] or ['.']))
from gluon import current
from gluon.storage import Storage
from optparse import OptionParser
@@ -37,6 +43,7 @@ import datetime
import os
import stat
import time
import glob
EXPIRATION_MINUTES = 60
SLEEP_MINUTES = 5
@@ -157,6 +164,9 @@ class SessionFile(object):
def delete(self):
try:
os.unlink(self.filename)
path = os.path.dirname(filename)
if not path.endswith('sessions') and len(os.listdir(path))==0:
os.rmdir(path)
except:
pass
@@ -191,10 +201,11 @@ def single_loop(expiration=None, force=False, verbose=False):
except:
expiration = EXPIRATION_MINUTES * 60
set_db = SessionSetDb(expiration, force, verbose)
set_files = SessionSetFiles(expiration, force, verbose)
set_db.trash()
set_files.trash()
set_db = SessionSetDb(expiration, force, verbose)
set_db.trash()
def main():
"""Main processing."""