def _from_json(self, datastring):
     return utils.loads(datastring)
示例#2
0
 def _from_json(self, datastring):
     return utils.loads(datastring)
示例#3
0
 def _from_json(self, datastring):
     try:
         return utils.loads(datastring)
     except ValueError:
         msg = _("cannot understand JSON")
         raise exception.MalformedRequestBody(reason=msg)
示例#4
0
 def _from_json(self, datastring):
     try:
         return utils.loads(datastring)
     except ValueError:
         msg = _("cannot understand JSON")
         raise exception.MalformedRequestBody(reason=msg)