From d761ba653547c64ecbd46897605e274efd96c73b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 11 Apr 2012 10:32:31 +0200 Subject: [PATCH] export past and current functions in deputy json --- themis/datatypes/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/themis/datatypes/views.py b/themis/datatypes/views.py index 4de4578..7ee3ba6 100644 --- a/themis/datatypes/views.py +++ b/themis/datatypes/views.py @@ -31,6 +31,10 @@ class DeputyJson(BrowserView): d['work_address'] = self.context.work_address.as_dict(), if self.context.work_address_2: d['work_address_2'] = self.context.work_address_2.as_dict() + if self.context.current_functions and self.context.current_functions.raw: + d['current_functions'] = self.context.current_functions.raw + if self.context.past_functions and self.context.past_functions.raw: + d['past_functions'] = self.context.past_functions.raw self.request.response.setHeader('Content-type', 'application/json') return json.dumps(d)