fixed typo in storage.py
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
- db = DAL('mongodb://127.0.0.1:5984/db') (experimental, thanks Mark Breedveld)
|
||||
- db = DAL('cubrid') (experimental)
|
||||
- db = DAL('postgres:pg8000:...') and DAL('postgres:psycopg2:...')
|
||||
- pg8000 now ships with web2py )thanks Mariano)
|
||||
- pg8000 now ships with web2py (thanks Mariano)
|
||||
- reponse.delimiters = ('\\[','\\]') (thanks Denes)
|
||||
- auth.user_groups stores user groups
|
||||
- auth.is_impersonating()
|
||||
|
||||
@@ -1 +1 @@
|
||||
Version 1.99.5 (2012-03-01 15:20:14) stable
|
||||
Version 1.99.5 (2012-03-02 10:03:17) stable
|
||||
|
||||
+2
-2
@@ -174,7 +174,7 @@ class StorageList(Storage):
|
||||
def load_storage(filename):
|
||||
fp = None
|
||||
try:
|
||||
fp = portalocker.LockFile(filename, 'rb')
|
||||
fp = portalocker.LockedFile(filename, 'rb')
|
||||
storage = cPickle.load(fp)
|
||||
finally:
|
||||
if fp: fp.close()
|
||||
@@ -184,7 +184,7 @@ def load_storage(filename):
|
||||
def save_storage(storage, filename):
|
||||
fp = None
|
||||
try:
|
||||
fp = portalocker.LockFile(filename, 'wb')
|
||||
fp = portalocker.LockedFile(filename, 'wb')
|
||||
cPickle.dump(dict(storage), fp)
|
||||
finally:
|
||||
if fp: fp.close()
|
||||
|
||||
Reference in New Issue
Block a user