equal
deleted
inserted
replaced
136 class JsonErrorView(JsonMixIn, management.ErrorView): |
136 class JsonErrorView(JsonMixIn, management.ErrorView): |
137 """custom error view selected when client asks for a json view |
137 """custom error view selected when client asks for a json view |
138 |
138 |
139 The returned json object will contain err / traceback informations. |
139 The returned json object will contain err / traceback informations. |
140 """ |
140 """ |
141 __select__ = (management.ErrorView.__select__ & |
141 __select__ = (management.ErrorView.__select__ |
142 _requested_vid('jsonexport', 'ejsonexport')) |
142 & _requested_vid('jsonexport', 'ejsonexport')) |
143 |
143 |
144 def call(self): |
144 def call(self): |
145 errmsg, exclass, excinfo = self._excinfo() |
145 errmsg, exclass, excinfo = self._excinfo() |
146 self.wdata({ |
146 self.wdata({ |
147 'errmsg': errmsg, |
147 'errmsg': errmsg, |