Exemplo n.º 1
0
 def location_json(self, obj):
     return admins.json_format_html(obj.location)
Exemplo n.º 2
0
 def result_json(self, obj):
     return admins.json_format_html(obj.result)
Exemplo n.º 3
0
 def ua_info_json(self, obj):
     ua_info = getattr(obj, 'ua_info', {})
     return json_format_html(ua_info)
Exemplo n.º 4
0
 def params_json(self, obj):
     params = getattr(obj, 'params', {})
     return admins.json_format_html(params)
Exemplo n.º 5
0
 def openids_json(self, obj):
     context = getattr(obj, 'openids', {})
     return admins.json_format_html(context)
Exemplo n.º 6
0
 def data_json(self, obj):
     return admins.json_format_html(self.session_data(obj))
Exemplo n.º 7
0
 def context_json(self, obj):
     context = getattr(obj, 'context', {})
     return admins.json_format_html(context)
Exemplo n.º 8
0
 def msg_body_json(self, obj):
     return admins.json_format_html(obj.msg_body)
Exemplo n.º 9
0
 def attrs_json(self, obj):
     return admins.json_format_html(obj.attrs)
Exemplo n.º 10
0
 def last_msg_json(self, obj):
     extra = getattr(obj, 'last_msg', {})
     return admins.json_format_html(extra)
Exemplo n.º 11
0
 def record_json(self, obj):
     record = getattr(obj, 'record', {})
     return json_format_html(record)