Back to index

system-config-printer  1.3.9+20120706
Public Member Functions | Public Attributes
troubleshoot.ServerFirewalled.ServerFirewalled Class Reference
Inheritance diagram for troubleshoot.ServerFirewalled.ServerFirewalled:
Inheritance graph
[legend]
Collaboration diagram for troubleshoot.ServerFirewalled.ServerFirewalled:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def display
def can_click_forward
def connect_signals
def disconnect_signals
def collect_answer
def cancel_operation
def initial_vbox
 Helper functions.

Public Attributes

 label
 troubleshooter

Detailed Description

Definition at line 23 of file ServerFirewalled.py.


Constructor & Destructor Documentation

def troubleshoot.ServerFirewalled.ServerFirewalled.__init__ (   self,
  troubleshooter 
)

Definition at line 24 of file ServerFirewalled.py.

00024 
00025     def __init__ (self, troubleshooter):
00026         Question.__init__ (self, troubleshooter, "Server firewalled")
00027         page = self.initial_vbox (_("Check Server Firewall"),
00028                                    _("It is not possible to connect to the "
00029                                      "server."))
00030         self.label = gtk.Label ()
00031         self.label.set_alignment (0, 0)
00032         self.label.set_line_wrap (True)
00033         page.pack_start (self.label, False, False, 0)
00034         troubleshooter.new_page (page, self)

Here is the call graph for this function:


Member Function Documentation

Reimplemented from troubleshoot.base.Question.

Definition at line 50 of file ServerFirewalled.py.

00050 
00051     def can_click_forward (self):
00052         return False
def troubleshoot.base.Question.cancel_operation (   self) [inherited]
def troubleshoot.base.Question.collect_answer (   self) [inherited]
def troubleshoot.base.Question.connect_signals (   self,
  handler 
) [inherited]
Returns True if this page should be displayed, or False
if it should be skipped.

Reimplemented from troubleshoot.base.Question.

Definition at line 35 of file ServerFirewalled.py.

00035 
00036     def display (self):
00037         answers = self.troubleshooter.answers
00038         if not answers['cups_queue_listed']:
00039             return False
00040 
00041         if (answers.has_key ('remote_server_connect_ipp') and
00042             answers['remote_server_connect_ipp'] == False):
00043             self.label.set_text (_("Please check to see if a firewall or "
00044                                    "router configuration is blocking TCP "
00045                                    "port %d on server '%s'.")
00046                                  % (answers['remote_server_port'],
00047                                     answers['remote_server_try_connect']))
00048             return True
00049         return False

def troubleshoot.base.Question.initial_vbox (   self,
  title = '',
  text = '' 
) [inherited]

Helper functions.

Definition at line 66 of file base.py.

00066 
00067     def initial_vbox (self, title='', text=''):
00068         vbox = gtk.VBox ()
00069         vbox.set_border_width (12)
00070         vbox.set_spacing (12)
00071         if title:
00072             s = '<span weight="bold" size="larger">' + title + '</span>\n\n'
00073         else:
00074             s = ''
00075         s += text
00076         label = gtk.Label (s)
00077         label.set_alignment (0, 0)
00078         label.set_line_wrap (True)
00079         label.set_use_markup (True)
00080         vbox.pack_start (label, False, False, 0)
00081         return vbox

Here is the caller graph for this function:


Member Data Documentation

Definition at line 29 of file ServerFirewalled.py.

Reimplemented in troubleshoot.CheckPrinterSanity.CheckPrinterSanity.

Definition at line 41 of file base.py.


The documentation for this class was generated from the following file: