Merge ssh://github.com/web2py/web2py into native_json_local_check

This commit is contained in:
Michele Comitini
2013-07-22 23:25:54 +02:00
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.6.0-development+timestamp.2013.07.22.04.48.04
Version 2.6.0-development+timestamp.2013.07.22.14.51.29
+3 -3
View File
@@ -4324,10 +4324,10 @@ class DatabaseStoredFile:
try:
if db.executesql(query):
return True
except IOError, e:
except Exception:
# no web2py_filesystem found?
LOGGER.error("Could not retrieve %s. %s" % (filename, e))
pass
tb = traceback.format_exc()
LOGGER.error("Could not retrieve %s\n%s" % (filename, tb))
return False
+1 -1
View File
@@ -359,7 +359,7 @@ class IS_JSON(Validator):
return (value, None) # the serialized value is not passed
return (simplejson.loads(value), None)
except JSONErrors, e:
return (value, translate(self.error_message) + ': '+ e.message)
return (value, translate(self.error_message))
def formatter(self,value):
if value is None: