~ubuntu-branches/ubuntu/wily/system-config-printer/wily

« back to all changes in this revision

Viewing changes to troubleshoot/ServerFirewalled.py

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2014-08-05 23:59:59 UTC
  • mfrom: (256.1.1 utopic-proposed)
  • Revision ID: package-import@ubuntu.com-20140805235959-v1yzis5mo1nkxo2m
Tags: 1.5.0+20140805-0ubuntu2
debian/control: Build-depend on Python 3 (python3-all-dev).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python
 
1
#!/usr/bin/python3
2
2
 
3
3
## Printing troubleshooter
4
4
 
21
21
 
22
22
from gi.repository import Gtk
23
23
 
24
 
from base import *
 
24
from .base import *
25
25
class ServerFirewalled(Question):
26
26
    def __init__ (self, troubleshooter):
27
27
        Question.__init__ (self, troubleshooter, "Server firewalled")
39
39
        if not answers['cups_queue_listed']:
40
40
            return False
41
41
 
42
 
        if (answers.has_key ('remote_server_connect_ipp') and
 
42
        if ('remote_server_connect_ipp' in answers and
43
43
            answers['remote_server_connect_ipp'] == False):
44
44
            self.label.set_text (_("Please check to see if a firewall or "
45
45
                                   "router configuration is blocking TCP "