Merge branch 'master' of ssh://git.symlink.me/romain/weboob
This commit is contained in:
commit
ef6fdd6ca2
3 changed files with 7 additions and 2 deletions
|
|
@ -300,10 +300,14 @@ class ContactProfile(QWidget):
|
||||||
logging.warning('Not supported widget: %r' % widget)
|
logging.warning('Not supported widget: %r' % widget)
|
||||||
|
|
||||||
def previousClicked(self):
|
def previousClicked(self):
|
||||||
|
if len(self.contact.photos) == 0:
|
||||||
|
return
|
||||||
self.displayed_photo_idx = (self.displayed_photo_idx - 1) % len(self.contact.photos)
|
self.displayed_photo_idx = (self.displayed_photo_idx - 1) % len(self.contact.photos)
|
||||||
self.display_photo()
|
self.display_photo()
|
||||||
|
|
||||||
def nextClicked(self):
|
def nextClicked(self):
|
||||||
|
if len(self.contact.photos) == 0:
|
||||||
|
return
|
||||||
self.displayed_photo_idx = (self.displayed_photo_idx + 1) % len(self.contact.photos)
|
self.displayed_photo_idx = (self.displayed_photo_idx + 1) % len(self.contact.photos)
|
||||||
self.display_photo()
|
self.display_photo()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ class Radioob(ReplApplication):
|
||||||
|
|
||||||
radio = self.get_object(_id, 'get_radio', ['streams'])
|
radio = self.get_object(_id, 'get_radio', ['streams'])
|
||||||
if not radio:
|
if not radio:
|
||||||
print >>sys.stderr, 'Radio not found: ' % _id
|
print >>sys.stderr, 'Radio not found:', _id
|
||||||
return 1
|
return 1
|
||||||
try:
|
try:
|
||||||
player_name = self.config.get('media_player')
|
player_name = self.config.get('media_player')
|
||||||
|
|
|
||||||
|
|
@ -230,6 +230,7 @@ class StandardBrowser(mechanize.Browser):
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
except (mechanize.BrowserStateError, BrowserRetry):
|
except (mechanize.BrowserStateError, BrowserRetry):
|
||||||
|
if hasattr(self, 'home'):
|
||||||
self.home()
|
self.home()
|
||||||
return mechanize.Browser.open(self, *args, **kwargs)
|
return mechanize.Browser.open(self, *args, **kwargs)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue