Back to index

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

List of all members.

Public Member Functions

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

Public Attributes

 answers
 op
 troubleshooter

Detailed Description

Definition at line 25 of file SchedulerNotRunning.py.


Constructor & Destructor Documentation

Definition at line 26 of file SchedulerNotRunning.py.

00026 
00027     def __init__ (self, troubleshooter):
00028         Question.__init__ (self, troubleshooter, "Scheduler not running?")
00029         page = self.initial_vbox (_("CUPS Service Stopped"),
00030                                   _("The CUPS print spooler does not appear "
00031                                     "to be running.  To correct this, choose "
00032                                     "System->Administration->Services from "
00033                                     "the main menu and look for the 'cups' "
00034                                     "service."))
00035         troubleshooter.new_page (page, self)

Here is the call graph for this function:


Member Function Documentation

Reimplemented from troubleshoot.base.Question.

Definition at line 55 of file SchedulerNotRunning.py.

00055 
00056     def can_click_forward (self):
00057         return False

Reimplemented from troubleshoot.base.Question.

Definition at line 61 of file SchedulerNotRunning.py.

00061 
00062     def cancel_operation (self):
00063         self.op.cancel ()

Reimplemented from troubleshoot.base.Question.

Definition at line 58 of file SchedulerNotRunning.py.

00058 
00059     def collect_answer (self):
00060         return self.answers

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 36 of file SchedulerNotRunning.py.

00036 
00037     def display (self):
00038         self.answers = {}
00039         if self.troubleshooter.answers.get ('cups_queue_listed', False):
00040             return False
00041 
00042         parent = self.troubleshooter.get_window ()
00043 
00044         # Find out if CUPS is running.
00045         failure = False
00046         try:
00047             self.op = TimedOperation (cups.Connection,
00048                                       parent=parent)
00049             c = self.op.run ()
00050         except RuntimeError:
00051             failure = True
00052 
00053         self.answers['cups_connection_failure'] = failure
00054         return failure

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 37 of file SchedulerNotRunning.py.

Definition at line 46 of file SchedulerNotRunning.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: