Example #1
0
 def handle_uri(self, uri):
     if uri.startswith('file://'):
         return False
     elif uri.startswith('hotot:'):
         self.on_hotot_action(uri)
         return True
     elif uri.startswith('about:'):
         return True
     else:
         utils.open_webbrowser(uri)
     return True
Example #2
0
 def handle_uri(self, uri):
     if uri.startswith('file://'):
         return False
     elif uri.startswith('hotot:'):
         self.on_hotot_action(uri)
         return True
     elif uri.startswith('about:'):
         return True
     elif uri.startswith('http://stat.hotot.org'):
         return False
     else:
         utils.open_webbrowser(uri)
     return True
Example #3
0
 def handle_uri(self, uri):
     if uri.startswith('file://'):
         return False
     elif uri.startswith('hermelin:'):
         self.on_hermelin_action(uri)
         return True
     elif uri.startswith('about:'):
         return True
     elif uri.startswith('http://stat.hotot.org'):
         return False
     else:
         utils.open_webbrowser(uri)
     return True