Commit d1deaf0b authored by Romain Bignon's avatar Romain Bignon

fix selection of a product with comparoob

parent 07734461
weboob (0.c-5) unstable; urgency=low
* Fix selection of a product with comparoob.
-- Romain Bignon <romain@symlink.me> Tue, 27 Nov 2012 14:06:59 +0100
weboob (0.c-4.1) unstable; urgency=low
* Non-maintainer upload, already approved by the maintainer.
......
From: Romain Bignon <romain@symlink.me>
Origin: upstream, http://git.symlink.me/?p=romain/weboob.git;a=commitdiff;h=ccdc73e99f634cf2b1f66a51d529ca89a5551b64
Last-Update: 2012-05-05
Subject: Fix selection of a product
diff --git a/weboob/applications/comparoob/comparoob.py b/weboob/applications/comparoob/comparoob.py
index c19c7d5..01ab4cc 100644
--- a/weboob/applications/comparoob/comparoob.py
+++ b/weboob/applications/comparoob/comparoob.py
@@ -102,8 +102,8 @@ class Comparoob(ReplApplication):
product = products[0]
else:
print 'What product do you want to compare?'
- for i, product in enumerate(products):
- print ' %s%2d)%s %s' % (self.BOLD, i+1, self.NC, product.name)
+ for i, p in enumerate(products):
+ print ' %s%2d)%s %s' % (self.BOLD, i+1, self.NC, p.name)
r = int(self.ask(' Select a product', regexp='\d+'))
while product is None:
if r <= 0 or r > len(products):
for-upstream_fix-manpage-header.patch
for-upstream_fix-manpage-typos.patch
workaround-prettytable-api.patch
fix-selection-of-a-product.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment