patches/system-config-printer-04-remove-fedora-specific.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 14771 dbd1ae1f64ec
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14766
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
     1
diff -urN system-config-printer-1.0.12/system-config-printer.py ../SUNWcups-manager-2.24.2.hacked/system-config-printer-1.0.12/system-config-printer.py
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
     2
--- system-config-printer-1.0.12/system-config-printer.py	2008-12-12 15:24:32.495607000 +0000
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
     3
+++ ../SUNWcups-manager-2.24.2.hacked/system-config-printer-1.0.12/system-config-printer.py	2008-12-12 15:26:09.842560000 +0000
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
     4
@@ -100,10 +100,6 @@
14756
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     5
 ready_cursor = gtk.gdk.Cursor(gtk.gdk.LEFT_PTR)
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     6
 ellipsis = unichr(0x2026)
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     7
 
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     8
-TEXT_start_firewall_tool = _("To do this, select "
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     9
-                             "System->Administration->Firewall "
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    10
-                             "from the main menu.")
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    11
-
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    12
 try:
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    13
     try_CUPS_SERVER_REMOTE_ANY = cups.CUPS_SERVER_REMOTE_ANY
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    14
 except AttributeError:
14766
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    15
@@ -2495,25 +2491,6 @@
14756
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    16
         self.changed = set()
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    17
         self.setDataButtonState()
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    18
 
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    19
-        old_setting = self.server_settings.get (cups.CUPS_SERVER_SHARE_PRINTERS,
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    20
-                                                '0')
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    21
-        new_setting = setting_dict.get (cups.CUPS_SERVER_SHARE_PRINTERS, '0')
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    22
-        if (old_setting == '0' and new_setting != '0'):
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    23
-            # We have just enabled print queue sharing.
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    24
-            # Ideally, this is the time we would check the firewall
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    25
-            # settings on this machine and request that the IPP TCP port
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    26
-            # be unblocked.  Unfortunately, this is not yet possible
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    27
-            # (bug #440469).  However, we can display a dialog to suggest
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    28
-            # that now might be a good time to review the firewall settings.
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    29
-            show_info_dialog (_("Review Firewall"),
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    30
-                              _("You may need to adjust the firewall "
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    31
-                                "to allow network printing to this "
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    32
-                                "computer.") + '\n\n' +
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    33
-                              TEXT_start_firewall_tool,
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    34
-                              parent=self.ServerSettingsDialog)
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    35
-
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    36
-        time.sleep(1) # give the server a chance to process our request
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    37
-
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    38
         # Now reconnect, in case the server needed to reload.
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    39
         self.reconnect ()
0517e3633a15 2008-12-11 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    40
 
14766
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    41
diff -urN system-config-printer-1.0.12/troubleshoot/SchedulerNotRunning.py ../SUNWcups-manager-2.24.2.hacked/system-config-printer-1.0.12/troubleshoot/SchedulerNotRunning.py
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    42
--- system-config-printer-1.0.12/troubleshoot/SchedulerNotRunning.py	2008-11-30 12:49:45.000000000 +0000
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    43
+++ ../SUNWcups-manager-2.24.2.hacked/system-config-printer-1.0.12/troubleshoot/SchedulerNotRunning.py	2008-12-12 15:47:02.904322000 +0000
14771
dbd1ae1f64ec 2008-12-15 Takao Fujiwara <[email protected]>
fujiwara
parents: 14766
diff changeset
    44
@@ -25,11 +25,12 @@ class SchedulerNotRunning(Question):
dbd1ae1f64ec 2008-12-15 Takao Fujiwara <[email protected]>
fujiwara
parents: 14766
diff changeset
    45
     def __init__ (self, troubleshooter):
14766
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    46
         Question.__init__ (self, troubleshooter, "Scheduler not running?")
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    47
         page = self.initial_vbox (_("CUPS Service Stopped"),
14771
dbd1ae1f64ec 2008-12-15 Takao Fujiwara <[email protected]>
fujiwara
parents: 14766
diff changeset
    48
+                                  # SUN_BRANDING
14766
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    49
                                   _("The CUPS print spooler does not appear "
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    50
-                                    "to be running.  To correct this, choose "
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    51
-                                    "System->Administration->Services from "
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    52
-                                    "the main menu and look for the `cups' "
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    53
-                                    "service."))
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    54
+                                    "to be running.  To correct this, "
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    55
+				    "run '/usr/sbin/print-service -s cups' "
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    56
+				    "as a privileged user "
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    57
+				    "in a terminal."))
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    58
         troubleshooter.new_page (page, self)
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    59
 
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    60
     def display (self):
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    61
diff -urN system-config-printer-1.0.12/troubleshoot/base.py ../SUNWcups-manager-2.24.2.hacked/system-config-printer-1.0.12/troubleshoot/base.py
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    62
--- system-config-printer-1.0.12/troubleshoot/base.py	2008-11-30 12:49:45.000000000 +0000
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    63
+++ ../SUNWcups-manager-2.24.2.hacked/system-config-printer-1.0.12/troubleshoot/base.py	2008-12-12 15:28:16.269370000 +0000
14771
dbd1ae1f64ec 2008-12-15 Takao Fujiwara <[email protected]>
fujiwara
parents: 14766
diff changeset
    64
@@ -30,8 +30,9 @@
dbd1ae1f64ec 2008-12-15 Takao Fujiwara <[email protected]>
fujiwara
parents: 14766
diff changeset
    65
             'Multichoice',
14766
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    66
             'TEXT_start_print_admin_tool' ]
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    67
 
14771
dbd1ae1f64ec 2008-12-15 Takao Fujiwara <[email protected]>
fujiwara
parents: 14766
diff changeset
    68
+                              # SUN_BRANDING
14766
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    69
 TEXT_start_print_admin_tool = _("To start this tool, select "
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    70
-                                "System->Administration->Printing "
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    71
+                                "System->Administration->Print Manager "
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    72
                                 "from the main menu.")
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    73
 
217be2f0f595 2008-12-12 Ghee Teo <[email protected]>
gheet
parents: 14756
diff changeset
    74
 class Question: