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