diff options
| author | chm@openerp.com <> | 2014-03-27 12:10:06 +0100 |
|---|---|---|
| committer | chm@openerp.com <> | 2014-03-27 12:10:06 +0100 |
| commit | ab903b9f6842e49c8cd4652a15356bcd77ddac52 (patch) | |
| tree | 4b5f5488af55b5d1e9ba7685e83f5096322359ff | |
| parent | 85cdf2a990400e53b488225e9667f4bef1ef6de2 (diff) | |
[FIX] website_event: return empty string in Local Events snippet if GeoIP is not installed
bzr revid: chm@openerp.com-20140327111006-ca2lbv2jxluxlw27
| -rw-r--r-- | addons/website_event/controllers/main.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/website_event/controllers/main.py b/addons/website_event/controllers/main.py index a630ffa0a1c..aae57e32a93 100644 --- a/addons/website_event/controllers/main.py +++ b/addons/website_event/controllers/main.py @@ -224,6 +224,8 @@ class website_event(http.Controller): @http.route('/event/get_country_event_list', type='http', auth='public', website=True) def get_country_events(self ,**post): + if not GeoIP: + return "" country_obj = request.registry['res.country'] event_obj = request.registry['event.event'] cr, uid, context,event_ids = request.cr, request.uid, request.context,[] |
