[FIX] hw_proxy: routes shadowed by same method name

This commit is contained in:
Olivier Dony 2015-05-08 12:39:32 +02:00
parent 5804246e0f
commit 5275c10e70
1 changed files with 2 additions and 2 deletions

View File

@ -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 ''