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