From 021130fe6321bb5070458873b0af31c14abdd231 Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Sun, 11 Oct 2015 00:29:59 +0200 Subject: [PATCH] also set WEB_REMOTE_IP --- eventman_server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eventman_server.py b/eventman_server.py index 54c31e3..ada7c0a 100755 --- a/eventman_server.py +++ b/eventman_server.py @@ -421,7 +421,8 @@ class EventsHandler(CollectionHandler): if person_id is None: person_id = str(new_person_data.get('person_id')) env.update({'PERSON_ID': person_id, 'EVENT_ID': id_, - 'EVENT_TITLE': doc.get('title', ''), 'WEB_USER': self.get_current_user()}) + 'EVENT_TITLE': doc.get('title', ''), 'WEB_USER': self.get_current_user(), + 'WEB_REMOTE_IP': self.request.remote_ip}) stdin_data = {'old': old_person_data, 'new': new_person_data, 'event': doc,