Merge ssh://github.com/web2py/web2py into native_json_local_check
This commit is contained in:
@@ -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
@@ -4324,10 +4324,10 @@ class DatabaseStoredFile:
|
|||||||
try:
|
try:
|
||||||
if db.executesql(query):
|
if db.executesql(query):
|
||||||
return True
|
return True
|
||||||
except IOError, e:
|
except Exception:
|
||||||
# no web2py_filesystem found?
|
# no web2py_filesystem found?
|
||||||
LOGGER.error("Could not retrieve %s. %s" % (filename, e))
|
tb = traceback.format_exc()
|
||||||
pass
|
LOGGER.error("Could not retrieve %s\n%s" % (filename, tb))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -359,7 +359,7 @@ class IS_JSON(Validator):
|
|||||||
return (value, None) # the serialized value is not passed
|
return (value, None) # the serialized value is not passed
|
||||||
return (simplejson.loads(value), None)
|
return (simplejson.loads(value), None)
|
||||||
except JSONErrors, e:
|
except JSONErrors, e:
|
||||||
return (value, translate(self.error_message) + ': '+ e.message)
|
return (value, translate(self.error_message))
|
||||||
|
|
||||||
def formatter(self,value):
|
def formatter(self,value):
|
||||||
if value is None:
|
if value is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user