From 5275c10e7047d5ae9c59dfb9eb8bc0fbbab4f298 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Fri, 8 May 2015 12:39:32 +0200 Subject: [PATCH] [FIX] hw_proxy: routes shadowed by same method name --- addons/hw_proxy/controllers/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/hw_proxy/controllers/main.py b/addons/hw_proxy/controllers/main.py index 88a569d366c..eced1d65b94 100644 --- a/addons/hw_proxy/controllers/main.py +++ b/addons/hw_proxy/controllers/main.py @@ -192,12 +192,12 @@ class Proxy(http.Controller): print 'print_receipt' + str(receipt) @http.route('/hw_proxy/is_scanner_connected', type='json', auth='none', cors='*') - def print_receipt(self, receipt): + def is_scanner_connected(self, receipt): print 'is_scanner_connected?' return False @http.route('/hw_proxy/scanner', type='json', auth='none', cors='*') - def print_receipt(self, receipt): + def scanner(self, receipt): print 'scanner' time.sleep(10) return ''