Updated pyDAL to 16.08

This commit is contained in:
Giovanni Barillari
2016-08-13 15:38:55 +02:00
parent be5ddca28f
commit 0528a347b3
54 changed files with 227 additions and 70 deletions
+3 -3
View File
@@ -13,7 +13,7 @@ Contains the classes for the global used variables:
- Session
"""
from pydal._compat import pickle, StringIO, copyreg, Cookie, urlparse, PY2, iteritems, to_unicode, to_native, unicodeT
from gluon._compat import pickle, StringIO, copyreg, Cookie, urlparse, PY2, iteritems, to_unicode, to_native, unicodeT
from gluon.storage import Storage, List
from gluon.streamer import streamer, stream_file_or_304_or_206, DEFAULT_CHUNK_SIZE
from gluon.contenttype import contenttype
@@ -436,7 +436,7 @@ class Response(Storage):
self._vars.update(b)
self._view_environment.update(self._vars)
if view:
from pydal._compat import StringIO
from gluon._compat import StringIO
(obody, oview) = (self.body, self.view)
(self.body, self.view) = (StringIO(), view)
run_view_in(self._view_environment)
@@ -1192,7 +1192,7 @@ class Session(Storage):
def _try_store_in_file(self, request, response):
try:
if (not response.session_id or
if (not response.session_id or
not response.session_filename or
self._forget
or self._unchanged(response)):