Blame SOURCES/system-config-printer-document-count.patch

0a882b
diff -up system-config-printer-1.4.1/jobviewer.py.document-count system-config-printer-1.4.1/jobviewer.py
0a882b
--- system-config-printer-1.4.1/jobviewer.py.document-count	2014-08-04 15:57:57.922351338 +0100
0a882b
+++ system-config-printer-1.4.1/jobviewer.py	2014-08-04 16:03:26.648077391 +0100
0a882b
@@ -1387,7 +1387,11 @@ class JobViewer (GtkGUI):
0a882b
             try:
0a882b
                 attrs=c.getJobAttributes(jobid)
0a882b
                 printer_uri=attrs['job-printer-uri']
0a882b
-                document_count=attrs.get ('document-count', 0)
0a882b
+                try:
0a882b
+                    document_count = attrs['number-of-documents']
0a882b
+                except KeyError:
0a882b
+                    document_count = attrs.get ('document-count', 0)
0a882b
+
0a882b
                 for document_number in range(1, document_count+1):
0a882b
                     document=c.getDocument(printer_uri, jobid, document_number)
0a882b
                     tempfile = document.get('file')