2008-12-01 Tim Waugh * configure.in: Version 1.0.12. 2008-11-27 Tim Waugh * system-config-printer.py (NewPrinterGUI.fillDeviceTab): Removed some dead code. 2008-11-26 Tim Waugh * troubleshoot/ErrorLogCheckpoint.py (ErrorLogCheckpoint.collect_answer): Make sure to use authenticated connection here. 2008-11-26 Tim Waugh * troubleshoot/DeviceListed.py (DeviceListed.display): Avoid traceback if getDevices fails. 2008-11-24 Tim Waugh * troubleshoot/CheckLocalServerPublishing.py (CheckLocalServerPublishing.__init__): Fixed option description (bug #462934). 2008-11-24 Tim Waugh * troubleshoot/ErrorLogCheckpoint.py (ErrorLogCheckpoint.collect_answer): Prevent exception when getFile fails. * troubleshoot/ErrorLogFetch.py (ErrorLogFetch.display): Likewise. * troubleshoot/PrintTestPage.py (PrintTestPage.print_clicked): Likewise for printTestPage. 2008-11-24 Tim Waugh * system-config-printer.py (GUI.maintenance_command): Remove temporary file. 2008-11-24 Tim Waugh * cupshelpers/cupshelpers.py (missingPackagesAndExecutables): Don't leak file descriptors, and clean up temporary files. 2008-11-21 Tim Waugh * configure.in: Version 1.0.11. 2008-11-21 Tim Waugh * jobviewer.py (JobViewer.add_job): Update job creation times. 2008-11-21 Tim Waugh * system-config-printer.py (GUI.setDataButtonState): Avoid use-before-set traceback (trac #111). 2008-11-21 Tim Waugh * AdvancedServerSettings.py (AdvancedServerSettingsDialog.__init__): Catch potential exception if libcups removes the file on failure. (AdvancedServerSettingsDialog.on_response): Likewise. 2008-11-21 Tim Waugh * monitor.py (Monitor.__init__): Remember which user to connect as. (Monitor.cleanup): Connect as correct user (trac #110). (Monitor.get_notifications): Likewise. (Monitor.refresh): Likewise. (Monitor.fetch_jobs): Likewise. 2008-11-21 Tim Waugh * cupshelpers/cupshelpers.py (Device.__cmp__): Sort usb devices before hal devices (trac #109). 2008-11-19 Tim Waugh * authconn.py (Connection._perform_authentication): If we get IPP_FORBIDDEN, switch to asking for the root password. 2008-11-19 Tim Waugh * system-config-printer.py (NewPrinterGUI.getNPPPD): Localize the PPD. (NewPrinterGUI.on_btnNPApply_clicked): Likewise. * cupshelpers/cupshelpers.py (Printer.getPPD): Likewise. 2008-11-19 Tim Waugh * system-config-printer.glade: Pressing Return in the Connect dialog activates the Connect... button. 2008-11-18 Tim Waugh * cupshelpers/ppds.py (PPDs.orderPPDNamesByPreference.sort_ppdnames.is_C_locale): Catch exceptions when examining file names (Ubuntu #299074). 2008-11-13 Tim Waugh * system-config-printer.py (NewPrinterGUI.init): Fetch PPDs in a background thread, again. 2008-11-13 Tim Waugh * monitor.py (Monitor.cleanup): Remove any pending timers. 2008-11-13 Tim Waugh * authconn.py (Connection._authloop): Remember the distinction between a canceled dialog and an authentication we've given up on. * errordialogs.py (show_IPP_Error): Only show IPP error dialog for errors not caused by a canceled authentication dialog. 2008-11-12 Tim Waugh * system-config-printer.py (NewPrinterGUI.queryDevices, NewPrinterGUI.getDevices_thread): Removed. (NewPrinterGUI.fetchDevices): Run in the main thread instead of starting a new one. This is necessary because the default configuration of CUPS 1.4 is to require an authenticated system user, and to do that we may need to present an authentication dialog. * PhysicalDevice.py (PhysicalDevice): Use authconn.Connection in case we need to present an authentication dialog. * troubleshoot/DeviceListed.py (DeviceListed.display): Likewise. 2008-11-07 Tim Waugh * authconn.py (Connection._perform_authentication): Grab keyboard and mouse when showing authentication dialog. * pysmb.py (AuthContext.perform_authentication): Likewise. * jobviewer.py (JobViewer.display_auth_info_dialog): Likewise. (JobViewer.auth_info_dialog_response): Ungrab them. 2008-11-07 Tim Waugh * jobviewer.py (JobViewer.auth_info_dialog_response): Don't leak AuthDialog. 2008-11-06 Tim Waugh * troubleshoot/CheckNetworkServerSanity.py (CheckNetworkServerSanity.display): Use strictly correct smb URI. 2008-11-06 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_tvNPDownloadableDrivers_cursor_changed): Fixed traceback in downloadable driver dialog. 2008-11-06 Tim Waugh * system-config-printer.py (GUI.reconnect): Sleep before reconnection attempt, not after. The CUPS server doesn't necessarily re-start immediately. 2008-11-06 Tim Waugh * cupshelpers/cupshelpers.py (Printer.setAsDefault): Removed old reconnect call which caused a traceback. Return a boolean indicating whether reconnection is necessary. * system-config-printer.py (GUI.set_default_printer): Reload only if necessary. (GUI.rename_printer): Likewise. 2008-11-05 Tim Waugh * configure.in: Version 1.0.10. 2008-11-05 Tim Waugh * troubleshoot/CheckNetworkServerSanity.py (CheckNetworkServerSanity.display): Prevent traceback. 2008-11-05 Tim Waugh * troubleshoot/CheckPPDSanity.py: Use gpk-install-package-name instead of system-install-packages. 2008-11-05 Tim Waugh * applet.py (NewPrinterNotification): Use gpk-install-package-name instead of system-install-packages. * system-config-printer.py (NewPrinterGUI.checkDriverExists): Likewise. 2008-11-04 Tim Waugh * system-config-printer.py (GUI.__init__): Don't set the IconView's item_width as that causes problem. Set the column and row spacing instead. 2008-11-04 Tim Waugh * monitor.py (Monitor.fetch_jobs): Apply specific_dests filter to fetched jobs. 2008-11-04 Tim Waugh * monitor.py (Monitor.update_connecting_devices): Only call still_connecting once, not repeatedly. 2008-11-04 Tim Waugh * monitor.py (Monitor.get_notifications): Prevent timer callbacks while we handle client callbacks. (Monitor.refresh): Likewise. 2008-11-04 Tim Waugh * monitor.py (Monitor.refresh): Reverted recent change inverting order of calls. The current_printers_and_jobs callback must be called first. (Monitor.set_process_pending): Control whether pending events may be processed. (Monitor.__init__): Initially they can. (Monitor.check_still_connecting): Defer timer callback if pending events are held. (Monitor.get_notifications): Likewise. (Monitor.fetch_jobs): Skip callback if events are held. 2008-11-03 Tim Waugh * jobviewer.py (JobViewer.current_printers_and_jobs): Don't process pending events while processing new jobs list. 2008-11-03 Tim Waugh * jobviewer.py (JobViewer.set_process_pending): Control whether pending events may be processed. (JobViewer.__init__): Initially they can. (JobViewer.set_statusicon_visibility): Only process pending events if allowed to. 2008-11-03 Tim Waugh * jobviewer.py (JobViewer.update_job): Make sure the notification is still valid after letting the status icon show itself. (JobViewer.on_auth_notification_closed): Mark notification as closed. (JobViewer.job_removed): Likewise. 2008-11-03 Tim Waugh * jobviewer.py (JobViewer.update_job): Restored compatibility code for pycups < 1.9.40 when connecting to CUPS and requesting specific job attributes. 2008-11-03 Tim Waugh * jobviewer.py (JobViewer.cleanup): Close open notifications on exit (trac #106). 2008-11-03 Tim Waugh * monitor.py (Monitor.refresh): Fixed race condition causing stale jobs (trac #107). 2008-11-03 Tim Waugh * jobviewer.py (JobViewer.update_job): Already set status icon visibility here. 2008-11-02 Tim Waugh * monitor.py (Monitor.fetch_jobs): Better logic for job trimming. 2008-10-31 Tim Waugh * jobviewer.py (JobViewer.current_printers_and_jobs): Better debugging. (JobViewer.job_event): Likewise. 2008-10-31 Tim Waugh * jobviewer.py (JobViewer.job_event): Remove job-hold-until from provided job data unless it was also provided as part of the notification. Call update_job earlier to make sure all required attributes are present. 2008-10-31 Tim Waugh * jobviewer.py (JobViewer.add_job): Use iter while it's fresh. 2008-10-31 Tim Waugh * jobviewer.py (JobViewer.update_job): Delete auth notification after closing it, otherwise we'll never show the notification for this job again. 2008-10-31 Tim Waugh * jobviewer.py (JobViewer.set_statusicon_visibility): Let the icon show/hide itself before continuing. (JobViewer.notify_new_printer): No longer need to do that here. (JobViewer.notify_printer_state_reason): Likewise. 2008-10-31 Tim Waugh * jobviewer.py (JobViewer.update_job): Set status icon visibility before making auth notification visible. 2008-10-31 Tim Waugh * jobviewer.py (JobViewer.add_job): Moved fetch of required job attributes... (JobViewer.update_job): ...here so that job event handling has access to all the attributes it requires. 2008-10-31 Tim Waugh * jobviewer.py (JobViewer.set_statusicon_visibility): Count auth notifications as reasons to keep the status icon visible. 2008-10-31 Tim Waugh * jobviewer.py (JobViewer.job_removed): Close outstanding auth notifications when the job is removed. 2008-10-31 Tim Waugh * monitor.py (Monitor.fetch_jobs): Trim the remaining jobs after the last job is returned. 2008-10-28 Tim Waugh * jobviewer.py (JobViewer.current_printers_and_jobs): Moved fetch of required job attributes... * jobviewer.py (JobViewer.add_job): ...here. This is needed because all jobs are added via add_job now, even pre-existing ones. 2008-10-29 Tim Waugh * jobviewer.py (JobViewer.on_state_reason_notification_closed): Set 'closed' data for notification instead of removing the object from the state_reason_notifications dict. (JobViewer.set_statusicon_visibility): Skip closed notifications when counting how many open notifications there are. (JobViewer.notify_printer_state_reason): No need to set 'printer-state-reason' data on object any more. (JobViewer.state_reason_removed): Don't try closing notification if it was already closed. Remove the notification from the state_reasons_notification dict now that the reason is cleared. Adjust statusicon visibility appropriately. 2008-10-29 Tim Waugh * my-default-printer.py (Dialog.__init__): Set default window icon (Ubuntu #290469). 2008-10-21 Tim Waugh * configure.in: Version 1.0.9. 2008-10-16 Tim Waugh * system-config-printer.py (GUI.save_printer): Prevent traceback when printer has been deleted. * system-config-printer.py (GUI.populateList): Cancel properties dialog if the printer we're editing has been deleted. Fixes Ubuntu #284444. 2008-10-16 Tim Waugh * system-config-printer.py (GUI.__init__): Set the item width for the icon view, for a nicer appearance. 2008-10-16 Tim Waugh * debug.py (debugprint): Send debug output to stderr to work around the samba bug (#5805) that closes stdout. 2008-10-16 Tim Waugh * pysmb.py (AuthContext.perform_authentication): Fixed the SMB authentication dialog's cancel button (bug #467127). 2008-10-15 Tim Waugh * pysmb.py (AuthContext.perform_authentication): Don't destroy authentication dialog until after we've fetched the details (bug #464003). 2008-10-15 Tim Waugh * pysmb.py: Import gettext. 2008-10-15 Tim Waugh * smburi.py (SMBURI._construct): Don't construct URIs containing "@/". 2008-10-15 Tim Waugh * cupshelpers/ppds.py (PPDs.getInfoFromModel): Restrict URI in debugging output. 2008-10-15 Tim Waugh * pysmb.py (AuthContext.perform_authentication): Show an error dialog if the password was incorrect (bug #465407). * po/POTFILES.in: Translate pysmb.py (no new translatable strings). 2008-10-15 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_btnSMBVerify_clicked): Don't show an error dialog if the SMB authentication dialog is cancelled by the user (bug #465407). 2008-10-15 Tim Waugh * print-applet.desktop.in (NotShowIn): Don't show the applet in KDE, as that provides its own version (bug #466945). 2008-10-10 Tim Waugh * system-config-printer.py (GUI.__init__.UnobtrusiveButton.__init__): Don't use a LinkButton for the 'Problems?' button (bug #465407). 2008-10-10 Tim Waugh * system-config-printer.glade: Don't use a separator for the server settings dialog (bug #465407). 2008-10-10 Tim Waugh * system-config-printer.glade: Don't set non-zero page size for SpinButtons. 2008-10-10 Tim Waugh * errordialogs.py (show_IPP_Error): Don't show an error dialog if an IPP operation's authentication dialog is cancelled by the user (bug #465407). * authconn.py: Show an error dialog if the password was incorrect (bug #465407). 2008-10-09 Till Kamppeter * system-config-printer.py: Use message "Searching for downloadable drivers" in the wait window when polling OpenPrinting database vis Jockey. 2008-10-09 Tim Waugh * system-config-printer.glade: Renamed server_settings to server_settings_menu_entry to avoid naming collision. * system-config-printer.py (GUI.setConnected): Set Server Settings... menu entry sensitive depending on whether we are connected to a server (Ubuntu #280736). 2008-10-06 Till Kamppeter * system-config-printer.py, system-config-printer.glade: Display more driver info for downloadable drivers from OpenPrinting: Manufacturer/third-party-supplied? Free software? Patent issues? Recommended? Functionality, support contacts. The license text will now always be shown if available, but the user will only asked whether he accepts it in the case of a non-free license or patentissues. 2008-09-29 Tim Waugh * configure.in: Version 1.0.8. 2008-09-26 Tim Waugh * system-config-printer.py (NewPrinterGUI.fetchJockeyDriver): Make this translatable string the same as another to avoid breaking the Fedora string freeze. 2008-09-25 Till Kamppeter * applet.py, cupshelpers/ppds.py, system-config-printer.py: Added support for automatic printer driver download from OpenPrinting via Jockey. If no exactly matching driver for a new printer is found, Jockey is asked for a driver via D-Bus. If Jockey actually downloads a driver this way, the PPD list is rebuilt and if one of the new PPDs installed by the driver package matches the printer, it is suggested with priority. If hal-cups-utils reports a newly generated queue with a driver which does not match exactly, we capture the device ID now so that we can ask Jockey. If Jockey is not installed or too old, the Jockey queries fail gracefully and a locally installed driver is chosen. * cupshelpers/openprinting.py: When querying a driver entry from the OpenPrinting database, add also the fields - thirdpartysupplied - manufacturersupplied - supportcontacts to the data structure (Ubuntu #269454). 2008-09-08 Tim Waugh * system-config-printer.py (GUI.server_settings_response): If the advanced server settings dialog raises an exception, catch it (Ubuntu #267557). 2008-09-03 Tim Waugh * cupshelpers/ppds.py (PPDs.getInfoFromModel): Try 'Lexmark' instead of 'Lexmark International' when matching. 2008-09-03 Tim Waugh * cupshelpers/ppds.py (_self_test): Fixed testing for a specific IEEE 1284 Device ID. 2008-09-01 Tim Waugh * system-config-printer.glade: Avoid display problem with installable options. We now have a label where the options table will go, rather than starting the vbox empty. 2008-09-01 Tim Waugh * system-config-printer.py (NewPrinterGUI.nextNPTab): Use modelName string from custom PPD file to suggest name for new queue if no Device ID is available (trac #97). 2008-09-01 Tim Waugh * system-config-printer.py (NewPrinterGUI.nextNPTab): Rearranged code for suggesting an appropriate name for a new printer. 2008-08-30 Tim Waugh * authconn.py (Connection._authloop): Handle IPP_FORBIDDEN (bug #460670). 2008-08-29 Tim Waugh * configure.in: Version 1.0.7. 2008-08-28 Tim Waugh * monitor.py (Monitor.refresh): New parameter refresh_all. (Monitor.fetch_jobs): Skip over jobs we already know about unless refresh_all is True. * jobviewer.py (JobViewer.on_show_completed_jobs_activate): Don't refresh all jobs, just completed ones. 2008-08-28 Tim Waugh * monitor.py (Monitor.get_notifications): Don't call job_removed if we are interested in completed jobs. 2008-08-28 Tim Waugh * jobviewer.py (JobViewer.current_printers_and_jobs): Only fetch missing job attributes we require. (JobViewer.job_event): Likewise. 2008-08-27 Tim Waugh * system-config-printer.py (NewPrinterGUI.setNPButtons): Hide Back button on first page of New Class dialog. 2008-08-26 Tim Waugh * monitor.py (Monitor.fetch_jobs): Handle job fetching in parts on a timer (trac #93). (Monitor.refresh): Start timer. 2008-08-26 Tim Waugh * monitor.py (Monitor.refresh): Allow which_jobs to be specified when refreshing. * jobviewer.py (JobViewer.on_show_completed_jobs_activate): Give new which_jobs value to monitor.refresh(). 2008-08-26 Tim Waugh * jobviewer.py (JobViewer.add_job): Efficiency improvement. 2008-08-26 Tim Waugh * jobviewer.py (JobViewer.__init__): Removed self.which_jobs as not used. 2008-08-26 Tim Waugh * applet.py: Catch exceptions when printing non-fatal messages to stderr. 2008-08-22 Tim Waugh * monitor.py (Monitor.get_notifications): Handle job completion when the state changes to 'completed'; don't wait for the job-completed event. 2008-08-22 Tim Waugh * monitor.py (Monitor.refresh): Don't request job-progress events. 2008-08-22 Tim Waugh * monitor.py (Monitor.check_state_reasons): Efficiency improvement when not running in debug mode. (Monitor.get_notifications): Likewise. 2008-08-22 Tim Waugh * applet.py (show_version.any_jobs): Don't fetch all jobs to see if there are jobs; just one is sufficient (trac #92). 2008-08-21 Tim Waugh * system-config-printer.py (NewPrinterGUI.init): No need to start a devices query here. 2008-08-21 Tim Waugh * system-config-printer.py (NewPrinterGUI.init): No need to load PPDs while changing the device. 2008-08-21 Tim Waugh * system-config-printer.py (NewPrinterGUI.init): No need to load PPDs before changing the device. 2008-08-21 Tim Waugh * system-config-printer.py (NewPrinterGUI.fillDeviceTab): Merge current device into detected physical device if possible. 2008-08-21 Tim Waugh * system-config-printer.py (NewPrinterGUI.setNPButtons): Avoid traceback when no device has been selected yet. 2008-08-21 Tim Waugh * system-config-printer.py (NewPrinterGUI.fetchDevices): Cache device list (trac #36). 2008-08-21 Tim Waugh * system-config-printer.py (NewPrinterGUI.fillDeviceTab): Cache device list (trac #36). 2008-08-21 Tim Waugh * system-config-printer.glade: New expander in the New Printer dialog on the Select Device page, for selecting a connection. * system-config-printer.py (NewPrinterGUI.on_tvNPDeviceURIs_cursor_changed): New method. Update the description depending on the selected connection. (NewPrinterGUI.on_expNPDeviceURIs_expanded): New method. Adjust the expander's packing depending on its expanded state. 2008-08-21 Tim Waugh * system-config-printer.py (NewPrinterGUI.fillDeviceTab): Let the PhysicalDevice class handle duplicate merging. 2008-08-21 Tim Waugh * PhysicalDevice.py: New module. * Makefile.am (nobase_pkgdata_DATA): Ship it. 2008-08-21 Tim Waugh * system-config-printer.py (NewPrinterGUI.fillDeviceTab): More efficient algorithm for deleting duplicates. 2008-08-21 Tim Waugh * cupshelpers/ppds.py (ppdMakeModelSplit): The canonical name for Hewlett-Packard is HP. 2008-08-21 Tim Waugh * Makefile.am (nobase_pkgdata_DATA): Ship Locale troubleshooter module (Ubuntu #259926). 2008-08-20 Tim Waugh * configure.in: Version 1.0.6. 2008-08-20 Tim Waugh * system-config-printer.glade: Better layout for the new printer dialog. 2008-08-17 Rui Tiago Cação Matos * authconn.py (Connection._perform_authentication): Destroy the AuthDialog after run() since a new one is always created. Handle response == gtk.RESPONSE_DELETE_EVENT as gtk.RESPONSE_CANCEL. 2008-08-19 Tim Waugh * pysmb.py (AuthContext.perform_authentication): Destroy this dialog instead of hiding it. 2008-08-19 Tim Waugh * errordialogs.py (show_dialog): Destroy these dialogs instead of hiding them. 2008-08-19 Tim Waugh * userdefault.py (UserDefaultPrompt.on_response): Destroy this dialog instead of hiding it so that we avoid leaking it. 2008-08-19 Tim Waugh * AdvancedServerSettings.py (AdvancedServerSettingsDialog.__del__): Destroy this dialog instead of hiding it so that we avoid leaking it. 2008-08-18 Tim Waugh * jobviewer.py (JobViewer.__init__): Remember current host, port, encryption settings. (JobViewer.display_auth_info_dialog): Use them when making new connections. (JobViewer.auth_info_dialog_response): Likewise. (JobViewer.on_job_cancel_activate): Likewise. (JobViewer.on_job_hold_activate): Likewise. (JobViewer.on_job_release_activate): Likewise. (JobViewer.on_job_reprint_activate): Likewise. (JobViewer.current_printers_and_jobs): Likewise. (JobViewer.job_event): Likewise. 2008-08-18 Tim Waugh * system-config-printer.py (GUI.__init__): Initialise connect_encrypt. * system-config-printer.py (GUI.connect): Use parameters to Connection() when possible. (GUI.on_btnPrintTestPage_clicked): Likewise. Make sure to restore cups user. (NewPrinterGUI.getPPDs_thread): Use parameter to Connection() when possible. (NewPrinterGUI.nextNPTab): Likewise. (NewPrinterGUI.getDevices_thread): Likewise. (NewPrinterGUI.on_btnIPPVerify_clicked): Likewise. Restore current server afterwards. (NewPrinterGUI.browse_ipp_queues_thread): Likewise. * authconn.py (Connection.__init__): New parameters host, port, encryption. (Connection._connect): Use them. Use parameters to Connection() when possible. * monitor.py (Monitor.__init__): New parameters host, port, encryption. (Monitor.cleanup): Use them for new connections. Use parameters to Connection() when possible. (Monitor.get_notifications): Likewise. (Monitor.refresh): Likewise. 2008-08-18 Tim Waugh * system-config-printer.py (GUI.save_printer): Allow caller to set parent window. (GUI.copy_printer): Set parent window so that error dialogs are transient for the main window. 2008-08-18 Tim Waugh * system-config-printer.py (GUI.on_shared_activate): Handle IPP errors while setting shared status. 2008-08-18 Tim Waugh * system-config-printer.py (GUI.on_enabled_activate): Handle IPP errors while enabling/disabling printer. 2008-08-18 Tim Waugh * system-config-printer.py (GUI.rename_printer): Handle IPP errors while setting original printer to reject jobs. 2008-08-19 Till Kamppeter * cupshelpers/ppds.py (ppdMakeModelSplit): Replace the manufacturer name "Okidata" by "Oki". Remove empty parentheses and trailing slashes from cleaned model names (they appear when "PS" or "PostScript") is removed from the names). 2008-08-15 Tim Waugh * jobviewer.py (JobViewer.display_auth_info_dialog): Allow more than one authentication dialog at a time. 2008-08-15 Tim Waugh * jobviewer.py (JobViewer.current_printers_and_jobs): Reset jobs dict to keep it in synchronisation with the jobiters dict. This prevents a traceback after releasing a held job. 2008-08-15 Tim Waugh * cupshelpers/cupshelpers.py (_PrintersConf.fetch): Clean up temporary file in case of error. 2008-08-15 Tim Waugh * jobviewer.py (JobViewer.auth_info_dialog_delete): Handle delete-event. (JobViewer.display_auth_info_dialog): Connect to signal. 2008-08-14 Tim Waugh * cupshelpers/openprinting.py (OpenPrinting.listDrivers.parse_result): OpenPrinting API change: freesoftware -> nonfreesoftware (trac #74). * system-config-printer.py (NewPrinterGUI.on_tvNPDownloadableDrivers_cursor_changed): Likewise. 2008-08-14 Tim Waugh * jobviewer.py (JobViewer.on_new_printer_notification_closed): Optional reason parameter to handle newer libnotify signal interface. (JobViewer.on_state_reason_notification_closed): Likewise. (JobViewer.on_auth_notification_closed): Likewise. 2008-08-14 Tim Waugh * jobviewer.py (JobViewer.update_job): Display a notification when a job requires authentication (trac #91). (JobViewer.on_auth_notification_authenticate): New method. Display an authentication dialog when the notification's authenticate action is triggered. (JobViewer.on_auth_notification_closed): New method. Handle an auth notification being closed. 2008-08-14 Tim Waugh * jobviewer.py (JobViewer.update_job): Moved code for displaying authentication dialog... (JobViewer.display_auth_info_dialog): ...here. New method. 2008-08-14 Rui Tiago Cação Matos * system-config-printer.py (GUI.__init__): * system-config-printer.py (NewPrinterGUI.__init__): Since some dialogs are reused we can't let the delete-event's default handler destroy them. * system-config-printer.py (on_delete_just_hide): This method is connected to those dialog's delete-event (trac #88). 2008-08-14 Tim Waugh * jobviewer.py (JobViewer.update_job): When a job is held for authentication, say so in the status column. 2008-08-14 Tim Waugh * jobviewer.py (JobViewer.update_job): Show authentication dialog in the middle of the screen (trac #90). 2008-08-13 Tim Waugh * authconn.py (Connection._authloop): Re-bind to the named method on reconnection. Handle HTTP_FORBIDDEN (trac #89). (Connection._failed): New optional parameter forbidden. Remember whether we saw HTTP_FORBIDDEN. (Connection._perform_authentication): Initialise self._forbidden. Use it to decide whether to try as root. Don't call setUser() here; _connect() will do that. 2008-08-12 Tim Waugh * jobviewer.py (JobViewer.update_job): Pre-fill the username field when asking for authentication for the job (trac #87). 2008-08-11 Tim Waugh * configure.in: Version 1.0.5. 2008-08-02 Tim Waugh * system-config-printer.py (NewPrinterGUI.openprinting_printers_found): Fix selection of printer model from query result. We'd been using the index in the list before sorting instead of after sorting. 2008-08-01 Tim Waugh * system-config-printer.py (NewPrinterGUI.browse_smb_hosts): If the user has specified a URI before clicking Browse, add that server at the top-level and expand it (trac #66). 2008-08-01 Tim Waugh * smburi.py (SMBURI._construct): Construct minimal URI so that typing in a complete URI works without it becoming disrupted. (SMBURI.separate): If no hostname is present, use the empty string instead of 'localhost'. 2008-08-01 Tim Waugh * system-config-printer.py (GUI.is_rename_possible): New method to determine whether a rename can go ahead and display an error dialog if not. (GUI.rename_printer): Use it. (GUI.on_rename_activate): Likewise (trac #78). 2008-08-01 Tim Waugh * system-config-printer.py (GUI.rename_printer): Restore original accepting/rejecting state if copying the printer fails. 2008-08-01 Tim Waugh * system-config-printer.py (GUI.rename_printer): Fixed typo. 2008-08-01 Tim Waugh * system-config-printer.py (GUI.updatePrinterProperties): Include printer-state-message next to printer state, so that reasons such as 'unplugged or turned off' are shown when the printer is stopped (trac #85). 2008-07-31 Tim Waugh * system-config-printer.py (NewPrinterGUI.nextNPTab): Don't load PPDs if we are creating an explicit queue for a remote CUPS queue (trac #72). 2008-07-31 Tim Waugh * options.py (OptionAlwaysShown.get_widget_value): Prevent traceback when editing the text of a SpinButton widget (e.g. when the box is empty). 2008-07-31 Till Kamppeter * options.py (get_widget_value): Work around broken get_value() method in gtk.SpinButton class of pygtk. get_value() does not return an updated value when only typing in the input field, it only gives the updated value when clicking the spin arrows or switching to another widget. This leads to the "Apply" button staying gray when typing into the input field of the spinbox. Replaced get_value() by the get_text() method inherited from gtk.Entry class to solve the problem (trac #83). * ppds.py: Case-insensitive sorting of printer model list. 2008-07-29 Tim Waugh * system-config-printer.py (NewPrinterGUI.nextNPTab): Preserve server and port settings while fetching IPP attributes of remote printer. 2008-07-29 Tim Waugh * authconn.py (Connection.__init__): Note current settings for CUPS user, server and port. (Connection._connect): Reset user, server and port settings before connection (trac #79). 2008-07-29 Tim Waugh * system-config-printer.py (GUI.printer_properties_response): Re-read the PPD after applying changes (trac #76). 2008-07-29 Tim Waugh * jobviewer.py (JobViewer.on_job_cancel_activate): Ask the monitor to refresh after cancelling a job. (JobViewer.on_job_hold_activate): Likewise for held jobs. (JobViewer.on_job_release_activate): Likewise for released jobs. (JobViewer.on_job_reprint_activate): Likewise for reprinted jobs. 2008-07-29 Tim Waugh * jobviewer.py (JobViewer.on_job_cancel_activate): Don't display an error dialog if a job to cancel has already been cancelled. (JobViewer.on_job_hold_activate): Likewise for held jobs. (JobViewer.on_job_release_activate): Likewise for released jobs. 2008-07-29 Tim Waugh * system-config-printer.py (GUI.dests_iconview_button_release_event): Set the cursor to the pointed-to icon if not already selected. 2008-07-29 Tim Waugh * system-config-printer.py (GUI.rename_printer.jobs_error): Display an error dialog if the operation cannot go ahead due to jobs being in the queue (trac #78). 2008-07-17 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_tvSMBBrowser_row_expanded): Guard against shares being found instead of servers. In this case, only use printer shares. 2008-07-17 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_btnSMBBrowseOk_clicked): Fixed typos. 2008-07-17 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_tvSMBBrowser_cursor_changed): Prevent traceback. 2008-07-17 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_tvSMBBrowser_row_activated): Use smbc_type to determine how to act rather than the tree depth. (NewPrinterGUI.on_tvSMBBrowser_cursor_changed): Likewise. (NewPrinterGUI.on_btnSMBBrowseOk_clicked): Likewise. (NewPrinterGUI.on_tvSMBBrowser_row_expanded): Examine smbc_type of opendir results. (NewPrinterGUI.on_btnSMBBrowseOk_clicked): Workgroup may not be available, so use the empty string in that case. 2008-07-17 Tim Waugh * system-config-printer.py (NewPrinterGUI.browse_smb_hosts): Allow servers to be shown at the top level. (NewPrinterGUI.on_tvSMBBrowser_row_expanded): Use smbc_type to determine how to act, rather than the tree depth. Fixes trac #45. 2008-07-14 Tim Waugh * Makefile.am (nobase_pkgdata_DATA): Ship new module. * po/POTFILES.in: Translate it. 2008-07-11 Tim Waugh * system-config-printer.py (GUI.server_settings_response): Display Advanced Server Settings dialog when Advanced is clicked in the Server Settings dialog. 2008-07-09 Tim Waugh * glade/ServerSettingsDialog.glade: Added 'Advanced...' button to server settings dialog. 2008-07-11 Tim Waugh * system-config-printer.py (GUI.__init__): Connect the response signal from the server settings dialog to a handler for it. (GUI.on_server_settings_activate): Don't call run() here, just display the dialog. The response signal will call... (GUI.server_settings_response): ...this new handler. 2008-07-11 Tim Waugh * errordialogs.py (show_HTTP_Error): Fixed traceback. 2008-07-10 Tim Waugh * configure.in: Version 1.0.4. 2008-07-10 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_tvSMBBrowser_row_expanded): Use URI exactly as specified in libsmbclient man page. 2008-07-09 Tim Waugh * system-config-printer.py (NewPrinterGUI.nextNPTab): When adding an IPP printer, pre-fill the info and location fields from the remote queue (trac #37). 2008-07-09 Tim Waugh * troubleshoot/CheckPPDSanity.py (CheckPPDSanity.display): Report PPD option defaults. 2008-07-09 Tim Waugh * troubleshoot/Locale.py: New module. * troubleshoot/__init__.py (Troubleshooter._collect_answer): Run it (trac #38). 2008-07-09 Tim Waugh * troubleshoot/CheckNetworkServerSanity.py (CheckNetworkServerSanity.display): Look for SMB shares (trac #47). 2008-07-09 Tim Waugh * troubleshoot/base.py: Make _ a public name for this module. * troubleshoot/*.py: Don't explicitly import _. 2008-07-09 Tim Waugh * system-config-printer.py (NewPrinterGUI.openprinting_printers_found): More descriptive 'select model' text. Part of trac #25. 2008-07-09 Tim Waugh * system-config-printer.py (NewPrinterGUI.openprinting_printers_found): If an exact match is found, pre-select it. Part of trac #25. 2008-07-09 Tim Waugh * cupshelpers/openprinting.py: Moved top-level test code... (_simple_gui): ...here. 2008-07-09 Tim Waugh * cupshelpers/ppds.py: Removed self_test from public interface. It can still be called during 'make check'. (PPDs.self_test): Renamed so that it starts with an underscore. * Makefile.am (test-ppd-module.sh): Track name change. 2008-07-09 Tim Waugh * system-config-printer.py (NewPrinterGUI.init): Clear text entry fields before filling devices list, so that when self.on_tvNPDevices_cursor_changed() pre-fills the location field it doesn't get reset afterwards. 2008-07-09 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_tvNPDevices_cursor_changed): Fixed location pre-fill. 2008-07-08 Tim Waugh * system-config-printer.glade: Added 'Close' button to printer properties dialog. * system-config-printer.py (GUI.__init__): Fetch 'Close' button widget. (GUI.dests_iconview_item_activated): Show Close button only when the printer is a discovered one, and Apply/Cancel/OK otherwise. Fixes trac #61. 2008-07-08 Tim Waugh * system-config-printer.py (NewPrinterGUI.browse_smb_hosts): Increase smbc debugging level. (NewPrinterGUI.on_tvSMBBrowser_row_expanded): Likewise. (NewPrinterGUI.on_btnSMBVerify_clicked): Likewise. 2008-07-07 Tim Waugh * jobviewer.py (JobViewer.unset_special_statusicon): Set status icon visibility. We might need to hide the icon at this point. 2008-07-07 Tim Waugh * cupshelpers/ppds.py (PPDs.__init__): Removed unneeded debugging output. 2008-07-07 Tim Waugh * setup.py: New module. Configuration for distutils. * Makefile.am (EXTRA_DIST): Ship it. (.stamp-distutils-in-builddir): Convince distutils to work when srcdir is different to builddir. (all-local): Build cupshelpers module using distutils. (install-exec-local): Install it using distutils. (clean-local): Clean using distutils. (uninstall-local): Remove installed module. 2008-07-07 Tim Waugh * cupshelpers/__init__.py (__all__): Define public names. * cupshelpers/openprinting.py (__all__): Likewise. * cupshelpers/ppds.py (__all__): Likewise. 2008-07-04 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_cmbNPDownloadableDriverFoundPrinters_changed): Only download PPD files, not drivers. 2008-06-20 Till Kamppeter * cupshelpers/ppds.py: Made PostScript printers reliably be used with the manufacturer's PPD file. The manufacturer's PPD appeared as a separate model (at least for HP) and so got never used. Made SpliX and Gutenprint PPDs also be recognized as such if the drivers are downloaded from OpenPrinting (as LSB driver packages). 2008-07-04 Tim Waugh * system-config-printer.glade: Moved Ctrl+N accelerator from 'New', which has a sub-menu, to New->Printer (trac #55). 2008-07-01 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_tvNPDevices_cursor_changed): Use uname call instead of parsing /bin/hostname output (trac #52). 2008-07-01 Tim Waugh * system-config-printer.glade: Added 'Apply' button to printer properties dialog. * system-config-printer.py (GUI.__init__): Fetch Apply button widget. (GUI.setDataButtonState): Set Apply button sensitibity. (GUI.dests_iconview_item_activated): Set data button state. (GUI.printer_properties_response): Handle APPLY response. Fixes trac #54. 2008-07-01 Tim Waugh * system-config-printer.py (GUI.__init__): Limit the initial size of the window (trac #53). 2008-07-01 Tim Waugh * system-config-printer.py (GUI.__init__): No need to adjust width here. 2008-06-30 Tim Waugh * configure.in: Version 1.0.3. 2008-06-30 Tim Waugh * cupshelpers/cupshelpers.py (Printer.__repr__): New method. (Device.__repr__): New method. 2008-06-26 Tim Waugh * troubleshoot/Shrug.py: Hide the diagnostic output in an expander, and remove the copy-to-clipboard function. Fixes https://fedorahosted.org/system-config-printer/ticket/41. 2008-06-26 Tim Waugh * cupshelpers/openprinting.py (OpenPrinting.listDrivers.parse_result): Use _normalize_space instead of normalize_space. 2008-06-26 Tim Waugh * cupshelpers/__init__.py (set_debugprint_fn): New function to set debugging hook. * cupshelpers/cupshelpers.py: Don't import debug. Use _debugprint instead of debugprint throughout. * cupshelpers/ppds.py: Import _debugprint from the main cupshelpers module. Use _debugprint throughout. Fixes https://fedorahosted.org/system-config-printer/ticket/50. 2008-06-26 Tim Waugh * system-config-printer.py (NewPrinterGUI.getNetworkPrinterMakeModel): Use subprocess module instead of os.popen. (NewPrinterGUI.on_tvNPDevices_cursor_changed): Likewise. (NewPrinterGUI.getNPPPD): Likewise. Fixes https://fedorahosted.org/system-config-printer/ticket/44. 2008-06-25 Tim Waugh * system-config-printer.py (NewPrinterGUI.get_hpfax_device_id): Use subprocess module instead of os.popen. (NewPrinterGUI.get_hplip_uri_for_network_printer): Likewise. 2008-06-25 Tim Waugh * system-config-printer.py (NewPrinterGUI.get_hpfax_device_id): Prevent hp-info from accessing X display. 2008-06-25 Tim Waugh * system-config-printer.py (NewPrinterGUI.get_hpfax_device_id): Run hp-info in the C locale. 2008-06-25 Tim Waugh * troubleshoot/CheckPrinterSanity.py (CheckPrinterSanity.display): Prevent hp-info from accessing X display, so that it does not start the HPLIP systray applet (bug #452371 comment #4). 2008-06-24 Tim Waugh * Makefile.am (nobase_pkgdata_SCRIPTS): No need to install exported modules in pkgdatadir now. (EXTRA_DIST): Ship exported modules. 2008-06-24 Tim Waugh * openprinting.py: Moved... * cupshelpers/openprinting.py: ...here. * cupshelpers/__init__.py: Import it. * Makefile.am (EXPORT_MODULES): Export openprinting. * system-config-printer.py (NewPrinterGUI.__init__): Updated. Fixes https://fedorahosted.org/system-config-printer/ticket/34. 2008-06-24 Tim Waugh * openprinting.py (normalize_space): This function has private scope. (QueryThread): This class has private scope. Better docstrings throughout. 2008-06-24 Tim Waugh * cupshelpers/cupshelpers.py (main): This function has private scope. (iteratePPDOptions): Likewise. (getPPDGroupOptions): Likewise. (PrintersConf): This class has private scope. Better docstrings throughout. 2008-06-24 Tim Waugh * cupshelpers/cupshelpers.py (Printer.printer_states): Moved... * system-config-printer.py (GUI.printer_states): ...here. (GUI.updatePrinterProperties): Updated. * cupshelpers/cupshelpers.py (Printer): Removed instance variable state_description. * cupshelpers/cupshelpers.py: Don't import rhpl.translate. * po/POTFILES.in: Don't translate cupshelpers.py. 2008-06-24 Tim Waugh * ppds.py: Moved... * cupshelpers/ppds.py: ...here. Use implicit relative path to import parseDeviceID. (PPDs._main): Renamed self_test. * Makefile.am (test-ppd-module.sh): Adjusted. * cupshelpers/__init__.py: Import ppds module. * system-config-printer.py (NewPrinterGUI.init): The ppds module is now part of cupshelpers. (NewPrinterGUI.getPPDs_thread): Likewise. (NewPrinterGUI.nextNPTab): Likewise. (NewPrinterGUI.getNetworkPrinterMakeModel): Likewise. * applet.py (NewPrinterNotification.NewPrinter): Likewise. * Makefile.am (nobase_pkgdata_SCRIPTS): Track file move. 2008-06-24 Tim Waugh * cupshelpers.py: Moved... * cupshelpers/cupshelpers.py: ...here. * cupshelpers/__init__.py: New module. * Makefile.am (EXPORT_MODULES): Export cupshelpers. * POTFILES.in: Track file move. 2008-06-24 Tim Waugh * configure.in: Add AM_PATH_PYTHON. * Makefile.am (pythondir_SCRIPTS): Install exported modules. 2008-06-24 Tim Waugh * Makefile.am (EXPORT_MODULES): New variable. (html): New rule. Build API documentation for exported modules using epydoc. (distclean-local): Clean documentation. 2008-06-24 Tim Waugh * ppds.py: Better docstrings throughout. 2008-06-24 Tim Waugh * ppds.py (getDriverType): Made this function private as it is not part of the API for this module. (show_help): Likewise. (main): Likewise. 2008-06-24 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_tvSMBBrowser_row_expanded): Remove expander arrow when there are no sub-entries. 2008-06-23 Tim Waugh * system-config-printer.py (GUI.populateList): Better icon fallbacks. Fixes traceback seen in bug #452371 comment #2. 2008-06-20 Tim Waugh * Makefile.am (DISTCLEANFILES): Clean up PPDs cache file. * Makefile.am (test-ppd-module.sh): Use top_srcdir. Now 'make distcheck' passes again. 2008-06-20 Tim Waugh * ppds.py (ppdMakeModelSplit): Don't strip " Printer" from the end of the ppd-make-and-model string. Generic printers should be named like "Generic XYZ Printer". Fixes https://fedorahosted.org/system-config-printer/ticket/33. 2008-06-20 Tim Waugh * ppds.py (main): Check the results of the test suite against maximum permissable status code and regular expression for expected ppd-make-and-model string. * Makefile.am (test-ppd-module.sh): Create shell script to run PPDs test suite. * Makefile.am (TESTS): Run it. * Makefile.am (DISTCLEANFILES): Clean it up. 2008-06-20 Tim Waugh * pysmb.py (AuthContext.initial_authentication): Pre-fill SMB workgroup from smbc.Context.workgroup. Fixes https://fedorahosted.org/system-config-printer/ticket/30. 2008-06-19 Tim Waugh * system-config-printer.py (NewPrinterGUI.browse_ipp_queues_thread): More informative dialog when queue list cannot be fetched. Part of https://fedorahosted.org/system-config-printer/ticket/26. 2008-06-19 Tim Waugh * system-config-printer.py (NewPrinterGUI.browse_ipp_queues_thread): Hide browse window if there was a problem browsing. Part of https://fedorahosted.org/system-config-printer/ticket/26. 2008-06-19 Tim Waugh * system-config-printer.py (NewPrinterGUI.browse_smb_hosts): If no hosts are found, advise user to check firewall. Part of https://fedorahosted.org/system-config-printer/ticket/26. 2008-06-19 Tim Waugh * system-config-printer.py (TEXT_start_firewall_tool): Moved this translatable string to a global variable. (GUI.save_serversettings): Use the global variable. 2008-06-19 Tim Waugh * jobviewer.py (PrinterURIIndex): New class, for mapping printer URIs to printer names. (JobViewer.printer_event): New method. Update printer URI index. (JobViewer.printer_removed): New method. Update printer URI index. (JobViewer.current_printers_and_jobs): Instantiate printer URI index, and use it to look up printer names by job-printer-uri. (JobViewer.job_added): Look up printer names by job-printer-uri. (JobViewer.job_event): Likewise. Fixes https://fedorahosted.org/system-config-printer/ticket/29. 2008-06-19 Tim Waugh * system-config-printer.glade: Give names to the separators in the printer context menu. * contextmenu.py (PrinterContextMenu.__init__): Fetch named separator widgets from glade file. (PrinterContextMenu.__init__.popup): Show separators only when there is something to separate. Fixes https://fedorahosted.org/system-config-printer/ticket/31. 2008-06-17 Tim Waugh * cupshelpers.py (Printer.getAttributes): Work around a pycups bug fixed in 1.9.40: finishings-supported should be a list. 2008-06-17 Tim Waugh * options.py (OptionAlwaysShown.reinit): Support use_supported for combobox_map-using options such as finishings. * system-config-printer.py (GUI.__init__): Set use_supported true for the finishings options. Fixes https://fedorahosted.org/system-config-printer/ticket/32. 2008-06-16 Rui Tiago Cação Matos * system-config-printer.py (GUI.populateList): Remove unused select_path local variable. 2008-06-16 Tim Waugh * pysmb.py (AuthContext.perform_authentication): Use STOCK_DIALOG_AUTHENTICATION instead of literal string. * optionwidgets.py (Option.__init__): Use STOCK_DIALOG_WARNING and ICON_SIZE_SMALL_TOOLBAR instead of literal strings and ints. * authconn.py (AuthDialog.__init__): Use STOCK_DIALOG_AUTHENTICATION instead of literal string. * errordialogs.py (show_info_dialog): Use STOCK_DIALOG_INFO instead of literal string. (show_error_dialog): Use STOCK_DIALOG_ERROR instead of literal string. * jobviewer.py (JobViewer.job_event): Likewise. * userdefault.py (UserDefaultPrompt.__init__): Use STOCK_DIALOG_QUESTION instead of a literal string. 2008-06-16 Tim Waugh * userdefault.py (UserDefaultPrompt): New class, implementing a user/system default printer dialog. * system-config-printer.py (GUI.set_system_or_user_default_printer): New method. Display dialog. (PrinterContextMenu.on_printer_context_set_as_default_activate): Use new method. (GUI.on_set_as_default_activate): Likewise. 2008-06-16 Tim Waugh * contextmenu.py (PrinterContextMenu.popup): Show the Set As Default menu item for the system default printer except when no user default is set. 2008-06-16 Tim Waugh * system-config-printer.py (GUI.populateList): Display emblem for user default printer. 2008-06-16 Tim Waugh * userdefault.py: New module. * Makefile.am (nobase_pkgdata_DATA): Ship it. 2008-06-13 Tim Waugh * cupshelpers.py (Printer.update): Work-around pycups bug. The printer-uri-supported attribute should always be a list. 2008-06-11 Tim Waugh * system-config-printer.py (NewPrinterGUI.openprinting_printers_found): Set the combobox sensitive. (NewPrinterGUI.on_btnNPDownloadableDriverSearch_clicked): Set the combobox insensitive. (NewPrinterGUI.on_rbtnNPFoomatic_toggled): Set the combobox insensitive if the search is cancelled. Part of https://fedorahosted.org/system-config-printer/ticket/25. 2008-06-10 Tim Waugh * Makefile.am (help): Added help for run-applet. 2008-06-10 Tim Waugh * applet.glade (PasswordDialog): Removed. * system-config-printer.glade (ApplyDialog): Removed. (PrinterContextMenu): Removed. 2008-06-10 Tim Waugh * configure.in: Version 1.0.2. 2008-06-10 Tim Waugh * system-config-printer.py (NewPrinterGUI.getPPDs_thread): Propagate all exceptions. (NewPrinterGUI.fetchPPDs): Likewise. (NewPrinterGUI.init): Handle exceptions here to some degree. (GUI.cups_connection_error): New method. Watch for connection errors. (GUI.dests_iconview_item_activated): Watch for connection errors. 2008-06-10 Tim Waugh * system-config-printer.py (GUI.on_btnRefresh_clicked): Update status bar with connection status if we tried to connect. 2008-06-10 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_btnSMBVerify_clicked): Fixed typo causing traceback. Was introduced by 'transient for parent' change yesterday. 2008-06-09 Tim Waugh * configure.in: Version 1.0.1. 2008-06-09 Tim Waugh * system-config-printer.py (GUI.on_btnPrintTestPage_clicked): Use show_info_dialog. (GUI.maintenance_command): Likewise. (NewPrinterGUI.on_btnSMBVerify_clicked): Likewise. (NewPrinterGUI.on_btnIPPVerify_clicked): Likewise. * system-config-printer.glade (InfoDialog): Removed. 2008-06-09 Tim Waugh (NewPrinterGUI.on_btnSMBVerify_clicked): Set verification failure dialog transient for parent. 2008-06-09 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_btnSMBVerify_clicked): Better error dialog for SMB verification failure. 2008-06-09 Tim Waugh * pysmb.py (AuthContext.__init__): New variable, cancel. Clear it. (AuthContext.perform_authentication): Set it when Cancel button pressed. (AuthContext.failed): Raise exception if operation is canceled; also if operation failed due to some error unrelated to authentication. 2008-06-09 Tim Waugh * system-config-printer.py (NewPrinterGUI.__init__): Removed smb_lock. (NewPrinterGUI.browse_smb_hosts_thread): Removed. (NewPrinterGUI.browse_smb_hosts): Do top-level browsing here. 2008-06-08 Tim Waugh * system-config-printer.py (GUI.on_connect_activate): Save encryption state. (GUI.connect): Restore encryption state. Fixes https://fedorahosted.org/system-config-printer/ticket/21. 2008-06-06 Tim Waugh * system-config-printer.py (GUI.populateList): Save/restore selection of printers. (GUI.printer_added_or_removed): No longer need to do this here. 2008-06-06 Tim Waugh * system-config-printer.py (GUI.__init__): Initialise server_is_publishing variable. (GUI.fillPrinterTab): Update it from server-is-sharing-printers attribute if available (CUPS 1.4). (GUI.fillServerTab): Update it from CUPS_SERVER_SHARE_PRINTERS setting. (GUI.advise_publish): New method. (GUI.on_shared_activate): Use it. 2008-06-06 Tim Waugh * system-config-printer.glade: New Shared checkbox menu item, both for the menu bar and the context menu. * system-config-printer.py (GUI.on_shared_activate): New method. (GUI.dests_iconview_selection_changed): Update Shared checkbox state. * contextmenu.py (PrinterContextMenu.on_printer_context_shared_activate): New method. (PrinterContextMenu.popup): Update Shared checkbox state. Fixes https://fedorahosted.org/system-config-printer/ticket/1. 2008-06-06 Tim Waugh * system-config-printer.glade: Changed Enable/Disable menu items to a single Enabled checkbox menu item, both for the menu bar and the context menu. * system-config-printer.py (GUI.on_enable_activate): Renamed... (GUI.on_enabled_activate): ...to this. Use checkbox. (GUI.on_disable_activate): Removed. (GUI.dests_iconview_selection_changed): Update Enabled checkbox state. * contextmenu.py (PrinterContextMenu.on_printer_context_enable_activate): Renamed... (PrinterContextMenu.on_printer_context_enabled_activate): ...to this. Use checkbox. (PrinterContextMenu.on_printer_context_disable_activate): Removed. (PrinterContextMenu.popup): Update Enabled checkbox state. 2008-06-06 Tim Waugh * cupshelpers.py (Printer.update): Work around pycups bug with printer-uri-supported. 2008-06-06 Tim Waugh * system-config-printer.glade: Better menu layout. Fixes https://fedorahosted.org/system-config-printer/ticket/2. * system-config-printer.py (GUI.__init__): Set View->Discovered Printers menu item insensitive for now (not implemented). 2008-06-06 Tim Waugh * system-config-printer.py (GUI.populateList): Better classification of available printers. Fixes https://fedorahosted.org/system-config-printer/ticket/7. 2008-06-06 Tim Waugh * applet.glade: Remove treeview signal connection for button_press_event. * jobviewer.py (JobViewer.__init__): Connect treeview's button_release_event and popup-menu signals. (JobViewer.show_treeview_popup_menu): New method, to adjust the visible menu items of the job context menu and show it. (JobViewer.on_treeview_button_press_event): Renamed... (JobViewer.on_treeview_button_release_event): ...to this. Use show_treeview_popup_menu. (JobViewer.on_treeview_popup_menu): New method. Fixes https://fedorahosted.org/system-config-printer/ticket/5. 2008-06-05 Tim Waugh * Makefile.am: Ship translation template file. 2008-06-05 Tim Waugh (NewPrinterGUI.browse_ipp_queues_thread): Fixed typo (bug #450120). 2008-06-05 Tim Waugh * system-config-printer.py (NewPrinterGUI.browse_ipp_queues_thread): Better exception handling. (NewPrinterGUI.browse_smb_hosts_thread): Likewise. (NewPrinterGUI.openprinting_printers_found): Likewise. 2008-06-05 Tim Waugh * system-config-printer.py (NewPrinterGUI.browse_ipp_queues_thread): IPP errors are fine here. 2008-06-05 Tim Waugh * system-config-printer.py (GUI.save_serversettings): Show a dialog advising the user to review the firewall if sharing has been enabled. 2008-06-05 Tim Waugh * errordialogs.py (show_dialog): New function. (show_error_dialog): Use it. (show_info_dialog): New function. 2008-06-04 Tim Waugh * system-config-printer.py (GUI.connect): Always show traceback for unhandled exceptions if debugging. (NewPrinterGUI.getDevices_thread): Likewise. 2008-06-04 Tim Waugh * system-config-printer.py (GUI.__init__): Don't fetch InstallDialog widget here... (NewPrinterGUI.__init__): ...fetch it here instead (bug #449860). (NewPrinterGUI.checkDriverExists): Fixed traceback. 2008-06-03 Tim Waugh * system-config-printer.glade: Adjust left hpane width in the printer properties dialog to be slightly wider. 2008-06-03 Tim Waugh * system-config-printer.py (GUI.on_btnPrintTestPage_clicked): Don't automatically try authenticating as root if asked for a password when printing a test page, as the authentication is likely to be needed for the remote print server. * authconn.py (Connection.__init__): New optional parameter try_as_root. (Connection._perform_authentication): Only try as root if allowed to. 2008-06-03 Tim Waugh * Makefile.am (run-applet): New target. 2008-06-03 Tim Waugh * jobviewer.py (JobViewer.__init__): Initialise set of stopped job IDs for which we are showing a dialog. (JobViewer.job_event): Don't show stopped-job dialog if we are already showing one for this job. (JobViewer.job_event): Add job ID to set before showing dialog. (JobViewer.print_error_dialog_response): Remove job ID from set. 2008-06-02 Tim Waugh * jobviewer.py (JobViewer.job_event): Ignore stopped jobs when they have been stopped due to the printer being paused. 2008-06-02 Tim Waugh * system-config-printer.py (NewPrinterGUI.init): Handle exceptions when fetching PPDs. 2008-05-31 Tim Waugh * applet.py (WaitForJobs): Harden against races. 2008-05-30 Tim Waugh * troubleshoot/CheckUSBPermissions.py: New module. * troubleshoot/__init__.py (QUESTIONS): Run it. * Makefile.am (nobase_pkgdata_DATA): Ship it. 2008-05-30 Tim Waugh * system-config-printer.py (GUI.populateList): No longer needs change_ppd argument. (GUI.__init__): Don't give change_ppd argument to populateList. (GUI.printer_properties_response): New method. (GUI.__init__): Connect the response signal to it. (GUI.dests_iconview_item_activated): Just show the dialog, don't call its run method. (GUI.__init__): Click the Change PPD... button if the change_ppd argument was given. 2008-05-29 Tim Waugh * system-config-printer.py (GUI.__init__): Renamed start_printer argument to configure_printer. Activate the relevant item. (GUI.populateList): No longer needs start_printer argument. (GUI.connect): Likewise. (GUI.on_connect_activate): Don't give start_printer argument to new thread. (GUI.on_copy_activate): Omit start_printer argument. (NewPrinterGUI.on_btnNPApply_clicked): Likewise. (main): Renamed start_printer argument to configure_printer. * system-config-printer.py (GUI.__init__): Connect IconView's popup-menu signal to... (GUI.dests_iconview_popup_menu): ...this new signal handler. * contextmenu.py (PrinterContextMenu.popup): Allow event to be None, for the case of the gtk.Widget popup-menu signal. * troubleshoot/PrintTestPage.py (PrintTestPage.update_jobs_list): Mark jobs as test jobs by default so that people who don't realise they need to click the check-box still get sufficient information in the troubleshoot.txt file. * jobviewer.py (JobViewer.update_job): If the job's auth-info-required attribute indicates Kerberos negotiation, try to authenticate the job without providing an auth-info attribute. 2008-05-28 Tim Waugh * troubleshoot/CheckPrinterSanity.py (CheckPrinterSanity.display): Make the cups_printer_remote answer a Boolean. * troubleshoot/DeviceListed.py (DeviceListed.collect_answer): Return all answers, including any set during the display method. (DeviceListed.display): Set cups_device_dict answer if the queue already exists, to make it easier to determine IEEE 1284 strings of devices that already have queues set up. * troubleshoot/DeviceListed.py (DeviceListed.display): Don't fetch devices if the selected queue is remote. * troubleshoot/ErrorLogCheckpoint.py (ErrorLogCheckpoint.enable_clicked): Set MaxLogSize to 0 to avoid cupsd rotating the log while the test page is printed. * troubleshoot/ErrorLogFetch.py (ErrorLogFetch.button_clicked): Reset MaxLogSize. * troubleshoot/CheckNetworkServerSanity.py (CheckNetworkServerSanity.display): Split output lines from traceroute. 2008-05-27 Tim Waugh * configure.in: Version 1.0.0. 2008-05-27 Tim Waugh * system-config-printer.py (GUI.__init__): Allow directory containing glade files to be overridden. * jobviewer.py (JobViewer.__init__): Likewise. Get pkgdatadir from config module. (JobViewer.__init__): Set window title appropriately. * Makefile.am (run): Give path to directory containing glade files, not to specific glade file. * system-config-printer.glade: Added 'Create Class' menu item to printer context menu. * contextmenu.py (PrinterContextMenu.on_printer_context_create_class): New method. * system-config-printer.py (GUI.__init__): Set toolbar buttons at runtime instead of using glade, in order to have a MenuToolButton for New Printer/New Class. * system-config-printer.glade: Removed toolbar buttons. * errordialogs.py (show_IPP_Error): Fixed typo. * system-config-printer.py (NewPrinterGUI.setNPButtons): Don't allow Forward button to be pressed on the downloadable driver screen if no driver is selected. * openprinting.py (OpenPrinting.searchPrinters): This is a search term, not a manufacturer's name. * system-config-printer.py (NewPrinterGUI.__init__): Don't disable OpenPrinting widgets, as only the PPD downloading part currently work. (NewPrinterGUI.getNPPPD): Use mkstemp here. (NewPrinterGUI.init): Set 'Select printer from database' radio button active. * system-config-printer.py (NewPrinterGUI.fillMakeList): Pre-fill the OpenPrinting.org search box. 2008-05-25 Tim Waugh * system-config-printer.py (GUI.__init__): Set default window icon name (Ubuntu #234750). * applet.py: Likewise. 2008-05-23 Tim Waugh * system-config-printer.py (NewPrinterGUI.browse_smb_hosts_thread): Remove the 'Scanning...' label when browsing is unsuccessful. * configure.in: Version 0.9.93. 2008-05-23 Tim Waugh * jobviewer.py (JobViewer.__init__): Added User column to job view. (JobViewer.update_job_creation_times): Updated Time column ID. (JobViewer.add_job): Fill User column. Updated Name column ID. (JobViewer.update_job): Updated other column IDs. * system-config-printer.py (GUI.populateList): New keyword parameter prompt_allowed. (GUI.printer_added_or_removed.maybe_select): Don't allow auth prompting when re-populating the printer list. * contextmenu.py (PrinterContextMenu.on_printer_context_set_as_default_activate): Use GUI.set_default_printer so that we handle errors correctly, and in case the server needed to reload. (PrinterContextMenu.on_printer_context_enable_activate): Handle IPP errors. * applet.glade (ErrorDialog): Removed. * jobviewer.py (JobViewer.show_IPP_Error): Use errordialogs module. * system-config-printer.glade (ErrorDialog): Removed. * system-config-printer.py: Use show_error_dialog() instead of the glade ErrorDialog widget. * system-config-printer.py (GUI.show_HTTP_Error): Moved... * errordialogs.py (show_HTTP_Error): ...here. * system-config-printer.py (GUI.show_IPP_Error): Moved... * errordialogs.py (show_IPP_Error): ...here. * troubleshoot/__init__.py (Troubleshooter.get_window): New method. * troubleshoot/PrintTestPage.py (PrintTestPage.print_clicked): Use it. * troubleshoot/PrintTestPage.py: Import errordialogs. * troubleshoot/base.py (show_error_dialog): Moved... * errordialogs.py (show_error_dialog): ...here. New module. * Makefile.am (nobase_pkgdata_DATA): Ship it. * po/POTFILES.in: Translate it. 2008-05-22 Tim Waugh * authconn.py (Connection._authloop): Move some initial variable settings... (Connection._perform_authentication): ...here, for the first pass. (Connection._perform_authentication): If no prompting is allowed, set _cancel and return non-zero so that we break out of the authentication loop. (Connection._perform_authentication): Likewise if we are about to prompt the user but never got a password callback from libcups. 2008-05-21 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_btnSMBVerify_clicked): Set cursor busy during verify. * system-config-printer.py (NewPrinterGUI.on_tvSMBBrowser_row_expanded): Don't remove row expansion arrow unless authentication was successful. (NewPrinterGUI.browse_smb_hosts_thread): Likewise. (NewPrinterGUI.on_tvSMBBrowser_row_expanded): Likewise. * system-config-printer.py: Set gettext function for monitor module. * system-config-printer.py (NewPrinterGUI.on_tvSMBBrowser_row_expanded): Create a new context here. * system-config-printer.py (NewPrinterGUI.browse_smb_hosts_thread): Set the auth function directly to the AuthContext callback. (NewPrinterGUI.on_tvSMBBrowser_row_expanded): Likewise. (NewPrinterGUI.on_btnSMBVerify_clicked): Likewise. (NewPrinterGUI.browse_smb_hosts_thread_auth_callback): Removed. * system-config-printer.py (NewPrinterGUI.browse_smb_hosts_thread): Made more robust in the face of SMB errors. (NewPrinterGUI.on_tvSMBBrowser_row_expanded): Likewise. 2008-05-20 Tim Waugh * authconn.py (Connection._perform_authentication): Reconnect after prompting. * cupshelpers.py (Printer.getAttributes): Avoid losing SMB authentication details. * system-config-printer.py (NewPrinterGUI.on_entSMBURI_changed): Don't reset authentication radio button if not necessary. 2008-05-20 Tim Waugh * configure.in: Version 0.9.92. 2008-05-20 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_tvSMBBrowser_row_activated): Double-clicking on a share selects it. * system-config-printer.py (GUI.dests_iconview_button_release_event): Fix right-click behaviour. * system-config-printer.glade: Removed user entry box in the connection dialog. * system-config-printer.py (GUI.on_connect_activate): Removed references to user entry box. * system-config-printer.py (NewPrinterGUI.on_btnSMBVerify_clicked): Don't use pysmb.printer_share_accessible for access checks unless we are using the old browsing code. * pysmb.py (AuthContext.__init__): Allow initial credentials to be set. * system-config-printer.py (NewPrinterGUI.browse_smb_hosts_thread): Fixed 'scanning...' message for new SMB browse code. 2008-05-19 Tim Waugh * system-config-printer.py (NewPrinterGUI.browse_smb_hosts_thread): Don't set no-anon-login flag as it seems to break browsing. * pysmb.py (AuthContext.failed): Raise exception if authentication details were not asked for. * system-config-printer.py (NewPrinterGUI.browse_smb_hosts_thread): Better exception handling. (NewPrinterGUI.on_tvSMBBrowser_row_expanded): Likewise. 2008-05-18 Tim Waugh * pysmb.py (AuthContext.perform_authentication): More debugging. * system-config-printer.py (NewPrinterGUI.on_tvNPDevices_cursor_changed): Better parsing of socket: URIs (Ubuntu bug #222616). (iconpath): Fixed icon search path. (GUI.populateList): Fail if an icon is not available. (NewPrinterGUI.browse_smb_hosts_thread): Enable smbc debugging if debugging is enabled. 2008-05-16 Tim Waugh * configure.in: Version 0.9.91. 2008-05-16 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_rbtnChangePPDasIs_toggled): Removed. (NewPrinterGUI.nextNPTab): Fetch the PPD before the copy-settings page and avoid showing an empty installable options page. (NewPrinterGUI.setNPButtons): Set buttons appropriately on the copy-settings page. * system-config-printer.py (NewPrinterGUI.setNPButtons): Initial value for radio button should be set in init... (NewPrinterGUI.init): ...here. * system-config-printer.py (NewPrinterGUI.__init__, NewPrinterGUI.browse_smb_hosts_thread, NewPrinterGUI.on_tvSMBBrowser_row_activated, NewPrinterGUI.on_btnSMBBrowseOk_clicked): Start of new SMB code. * system-config-printer.glade: Adjusted SMB authentication screen. * system-config-printer.py (NewPrinterGUI.on_entSMBURI_changed, NewPrinterGUI.on_btnSMBVerify_clicked, NewPrinterGUI.getDeviceURI): User interface adjustment. * system-config-printer.py (NewPrinterGUI.smbbrowser_cell_share): New method. (NewPrinterGUI.smbbrowser_cell_comment): New method. (NewPrinterGUI.browse_smb_hosts_thread_auth_callback): New method. * pysmb.py: Try to import smbc module. (AuthContext): New class. * system-config-printer.py (NewPrinterGUI.on_tvNPDevices_cursor_changed): Removed debugging. * system-config-printer.glade: Removed default printer parts from the printer properties dialog, as this is now done in the main window. * system-config-printer.py (GUI.fillPrinterTab): Removed references to printer properties default printer widgets. (GUI.on_btnPMakeDefault_clicked): Likewise. * system-config-printer.py (GUI.fillPrinterTab): Moved some code... (GUI.updatePrinterProperties): ...here. (GUI.printer_event): Update state etc. * cupshelpers.py (Printer.__init__): Moved some code... (Printer.update): ...here. (Printer.getAttributes): Update state etc. * system-config-printer.py (GUI.setTestButton): Removed. (GUI.fillPrinterTab): Don't call setTestButton. (GUI.on_btnPrintTestPage_clicked): Likewise, and don't ever cancel. (GUI.setDataButtonState): Removed cancellation handling. 2008-05-15 Tim Waugh * system-config-printer.py (NewPrinterGUI.init): Only set location to current hostname if the added printer is directly connected. (NewPrinterGUI.on_tvNPDevices_cursor_changed): Don't set location of remote printers to the local hostname. * troubleshoot/base.py (show_error_dialog): New method. * troubleshoot/PrintTestPage.py (PrintTestPage.print_clicked): Use it. (PrintTestPage.print_clicked): Try printing a text/plain file if application/postscript is not accepted. * authconn.py (AuthDialog.__init__): Set alignment for icon. 2008-05-14 Tim Waugh * system-config-printer.py (NewPrinterGUI.nextNPTab): Better translatable string. (NewPrinterGUI.getNPPPD): Likewise. * system-config-printer.py (NewPrinterGUI.getNPPPD): Finish writing the file before trying to parse it. Patch from George Liu. * system-config-printer.desktop.in, manage-print-jobs.desktop.in, print-applet.desktop.in, my-default-printer.desktop.in: Just exec binary name, not path name. * system-config-printer-applet: Generate this with autoconf so that configured paths can be used. * my-default-printer: Likewise. * system-config-printer: Likewise. * configure.in: Generate above scripts. * config.py.in: Get DATADIR from autoconf. * config.py.in (Paths): New class to handle pathname expansion. * system-config-printer.py: Use config.Paths to get pkgdatadir. 2008-05-13 Tim Waugh * system-config-printer.py (GUI.dests_iconview_selection_changed): Better logic for sensitivity. (GUI.on_enable_activate): New method. (GUI.on_disable_activate): New method. * system-config-printer.py (GUI.on_set_as_default_activate): New method. * system-config-printer.py (GUI.printer_name_edit_cancel): Moved from... * contextmenu.py (PrinterContextMenu.printer_name_edit_cancel): ...here. * system-config-printer.py (GUI.printer_name_edited): Moved from... * contextmenu.py (PrinterContextMenu.printer_name_edited): ...here. * system-config-printer.py (GUI.on_rename_activate): New method, from... * contextmenu.py (PrinterContextMenu.on_printer_context_rename_activate): ...here. Call main class's handler. * system-config-printer.glade: Add 'Copy' entry to printer context menu. * contextmenu.py (PrinterContextMenu.on_printer_context_copy_activate): New method. * troubleshoot/ErrorLogCheckpoint.py (ErrorLogCheckpoint.display): Clear 'done' label on page display. * troubleshoot/ErrorLogFetch.py (ErrorLogFetch.display): Likewise. 2008-05-12 Tim Waugh * applet.py (NewPrinterNotification.collect_exit_code): New method. Collect exit code of child (bug #446055). * jobviewer.py (JobViewer.notify_new_printer): Fixed new printer notifications. * applet.py: Set locale. * system-config-printer.py (GUI.makeNameUnique): Use dash instead of underscore when replacing disallowed characters (bug #445790). * system-config-printer.py (GUI.save_printer): Display any IPP error caught while refreshing printer information (Ubuntu #224021). * monitor.py (collect_printer_state_reasons): Ignore IPP errors here (Ubuntu #225241). * troubleshoot/PrintTestPage.py (PrintTestPage.print_clicked): Handle failure to connect to CUPS and failure to submit the test page (Ubuntu #222494). (PrintTestPage.cancel_clicked): Record failure reason instead of raising exception. 2008-05-09 Tim Waugh * system-config-printer.py (GUI.printer_added): Fixed typo calling base function. (GUI.printer_removed): Likewise. (GUI.printer_event): New method. Handle printer state updates so that enabled/disabled printers are shown correctly. 2008-05-08 Tim Waugh * system-config-printer.py (NewPrinterGUI.nextNPTab): Don't flip to the next page if there is an error obtaining the PPD. 2008-05-07 Tim Waugh * openprinting.py (OpenPrinting.__init__): Default to only Free downloads. * system-config-printer.py (NewPrinterGUI.getNPPPD): Implemented PPD download. Use urlopen to download PPD file from openprinting.org. Patch from George Liu. * system-config-printer.glade: Re-worked some of the downloadable PPD interface. Patch from George Liu. * openprinting.py (OpenPrinting.searchPrinters): Replaced web query filter printer=(searchterm) with make=(make). All models by the printer manufacturer will be returned. Patch from George Liu. (OpenPrinting.listDrivers): Changed search term onlydownloads to onlyppdfiles. Patch from George Liu. * system-config-printer.py (NewPrinterGUI.on_cmbNPDownloadableDriverFoundPrinters_changed): Fixed typo (patch from George Liu). 2008-05-06 Till Kamppeter * system-config-printer.glade: More fixes to make the properties dialog smaller. * applet.py (NewPrinterNotification.wake_up, check_for_jobs): Fixed crash on waitloop.quit(). 2008-05-02 Tim Waugh * system-config-printer.py (GUI.on_btnPrintTestPage_clicked): Connect as the current user to print the test page (bug #444306). * Makefile.am: Install main script in bindir, not sbindir. 2008-05-01 Tim Waugh * my-default-printer.py: Guard against locale errors (bug #417951). * openprinting.py (OpenPrinting.__init__): Likewise. * system-config-printer.py (show_help): Likewise. 2008-04-30 Tim Waugh * applet.py (NewPrinterNotification.NewPrinter): Only include Install button if we are able to install packages. 2008-04-29 Tim Waugh * troubleshoot/CheckPPDSanity.py (CheckPPDSanity.display): Provide null stdin. * troubleshoot/CheckNetworkServerSanity.py (CheckNetworkServerSanity.display): Likewise. Catch exceptions. * troubleshoot/CheckPrinterSanity.py (CheckPrinterSanity.display): Try hp-info for hp-scheme device URIs. 2008-04-21 Tim Waugh * configure.in (ALL_LINGUAS): Added sr@latin. Removed sr@Latn. * po/sr@Latn.po: Removed. * Makefile.am: Check for missing languages in update-po. 2008-04-21 Tim Waugh * system-config-printer.py (NewPrinterGUI.init): Don't empty the JetDirect hostname text entry widget here, as it might have been pre-filled for a selected device (Ubuntu #220041). 2008-04-18 Tim Waugh * system-config-prnter.py (NewPrinterGUI.init): Fix model pre-selection when changing PPD. * system-config-printer.py (NewPrinterGUI.on_btnNPApply_clicked): Reset 'media' default job option if it becomes invalid (bug #441836). 2008-04-17 Tim Waugh * ppds.py (ppdMakeModelSplit): Fix display of Generic PostScript model, which was getting set to the empty string. * system-config-printer.py (NewPrinterGUI.on_btnNPApply_clicked): Update printer properties when dialog is finished. 2008-04-16 Tim Waugh * applet.py (WaitForJobs): Cancel the deferral timer. 2008-04-16 Till Kamppeter * applet.py (main): Fixed Ubuntu crash bug #195508. 2008-04-16 Tim Waugh * system-config-printer.py (GUI.copy_printer): New method. (GUI.on_copy_activate): Use it. (GUI.rename_printer): New method. * cupshelpers.py (Printer.jobsQueued): New method. (Printer.testsQueued): Use it. * contextmenu.py (PrinterContextMenu.on_printer_context_rename_activate): New method. (PrinterContextMenu.printer_name_edited): New method. (PrinterContextMenu.printer_name_edit_cancel): New method. * system-config-printer.py (CUPS_server_hostname): New function. (GUI.setConnected): Use it. (GUI.dests_iconview_item_activated): Set printer properties dialog title to show printer and hostname. * system-config-printer.glade (PrinterPropertiesDialog): Use a TreeView to display option groupings instead of Notebook tabs. * system-config-printer.py (GUI.__init__): Set tree view column, selection mode and signals. (GUI.dests_iconview_item_activated): Select first page of the properties notebook. (GUI.on_tvPrinterProperties_selection_changed): Prevent selection from being de-selected. (GUI.on_tvPrinterProperties_cursor_changed): Flip notebook to correct page. (GUI.fillPrinterTab): Fill in tree view rows according to notebook tabs. (GUI.setDataButtonState): Display conflicts using bold markup in the tree view. 2008-04-15 Tim Waugh * system-config-printer.py (GUI.save_printer): Avoid copied queue having extra job options set. (GUI.on_copy_activate): Set transient for main window. Fixed typo in comment. * probe_printer.py (LpdServer._probe_queue): Better error handling so as to prevent tracebacks as in Ubuntu #213624. * system-config-printer.py (NewPrinterGUI.setNPButtons): Set sensitivity of Forward button when in ppd dialog mode (Ubuntu #211867). * po/pt.po: Mark bad translation fuzzy. * jobviewer.py: Don't import pynotify twice. 2008-04-13 Tim Waugh * statereason.py (StateReason.get_description): Don't crash on incorrect translations (Ubuntu #214732). 2008-04-11 Tim Waugh * system-config-printer.py (GUI.on_server_settings_activate): Set transient for main window. (GUI.on_troubleshoot_activate): Set transient for main window. * troubleshoot/__init__.py (Troubleshooter.__init__): Allow parent window to be specified. * system-config-printer.py (GUI.populateList): Use gtk.icon_size_lookup. * monitor.py (Monitor.handle_dbus_signal): Fixed typo. * applet.py (show_version): Correct comment. (WaitForJobs.handle_dbus_signal): New method. (WaitForJobs): Better deferral. 2008-04-10 Tim Waugh * system-config-printer.py (GUI.on_quit_activate): Clean up monitor instance so we don't leak CUPS subscriptions. * monitor.py (Monitor.get_notifications): Update after notify-get-interval period if we haven't ever had a D-Bus signal from CUPS. (Monitor.__init__): Initialise flag. (Monitor.handle_dbus_signal): Set flag. 2008-04-09 Tim Waugh * my-default-printer.py (Dialog.selection_changed): New method. Prevent selected item being de-selected. (Dialog.__init__): Connect TreeSelection changed signal to selection_changed method. This fixes Ubuntu #214579. 2008-04-08 Tim Waugh * system-config-printer.glade: No separator for the properties dialog. * jobviewer.py (JobViewer.__init__): Set transient for parent, if appropriate. * contextmenu.py (PrinterContextMenu.on_printer_context_view_print_queue_activate): Indicate parent window. * system-config-printer.py (GUI.on_about_activate): Make the About dialog appear in the right place. 2008-04-03 Tim Waugh * configure.in: Version 0.9.90, on the way to 1.0.0. 2008-04-03 Tim Waugh * Makefile.am: Ship monitor.py. * jobviewer.py (JobViewer.update_job): Don't dispay an authentication dialog if pycups doesn't provide authenticateJob(). * system-config-printer.py (GUI.printer_added_or_removed): New method. (GUI.printer_added): New method. (GUI.printer_removed): New method. (GUI.__init__): Start a monitor to watch for added and removed printers. (GUI.dests_iconview_item_activated): If the printer is discovered, don't allow the OK button to be clicked in the properties dialog. * monitor.py (Watcher.cups_connection_error): New API method. (Watcher.cups_ipp_error): New API method. (Monitor.get_notifications): Add cups_connection_error and cups_ipp_error hooks. (Monitor.refresh): Likewise. * jobviewer.py (JobViewer.current_printers_and_jobs): Fetch full job attributes for each job initially. (JobViewer.update_job): If proxy authentication is necessary, prompt for authentication information. (JobViewer.auth_info_dialog_response): Collect authentication information and perform proxy authentication. (JobViewer.job_added): Prevent traceback when there are no printer state reasons. (JobViewer.job_event): Display a print error dialog when a job stops for any reason other than authentication required (rescued from applet.py revision 2145). * authconn.py (AuthDialog): New class. (Connection._perform_authentication): Use it. 2008-04-01 Tim Waugh * cupshelpers.py (Printer.setAsDefault): Try specifying the file descriptor for getFile (requires pycups >= 1.9.38). (PrintersConf.fetch): Likewise. * monitor.py (Monitor.__init__): Allow caller to opt out of monitoring jobs. (Monitor.refresh): If not monitoring jobs, don't subscribe to job events. (Monitor.refresh): Only fetch jobs if we are monitoring them. * troubleshoot/CheckPrinterSanity.py (CheckPrinterSanity.display): Determine remote server name for smb URIs by parsing nmblookup output. * troubleshoot/CheckNetworkServerSanity.py (CheckNetworkServerSanity.display): Only try IPP connection for ipp URI schemes. * smburi.py (SMBURI.__init__): Accept full URIs. * troubleshoot/CheckPrinterSanity.py (CheckPrinterSanity.display): Treat http scheme the same as ipp. * system-config-printer.py (GUI.busy): Make more robust. (GUI.ready): Likewise. * my-default-printer.py (Dialog.__init__): Sort printers by name (bug #439804). 2008-03-31 Tim Waugh * system-config-printer.py (GUI.fillPrinterTab): If supported values are not known but the value is a Boolean, we can work out the supported values (Ubuntu #207338). (GUI.fillPrinterOptions): Initialise inputslot/manualfeed variables regardless of whether there are option groups. * system-config-printer.glade (PrinterPropertiesDialog): Fixed expand/fill flags in the job options tab (Ubuntu #208304). 2008-03-26 Tim Waugh * system-config-printer.py (fatalException): Moved... * debug.py (fatalException): ...here. * system-config-printer.py (nonfatalException): Moved... * debug.py (nonfatalException): ...here. * jobviewer.py (JobViewer.get_icon_pixbuf): Use it. * jobviewer.py (JobViewer.__init__): Removed dead code. (JobViewer.update_status): Renamed. Update statusbar. (JobViewer.add_state_reason_emblem): Moved worst reason search... (JobViewer.update_status): ...here. (JobViewer.current_printers_and_jobs): Set 'job-printer-name'. * jobviewer.py (JobViewer.set_statusicon_tooltip): New method. (JobViewer.update_statusicon): New method. (JobViewer.current_printers_and_jobs): Use it. (JobViewer.job_added): Likewise. (JobViewer.job_removed): Likewise. (JobViewer.state_reason_added): Likewise. (JobViewer.state_reason_removed): Likewise. * jobviewer.py (JobViewer.job_added): Set 'job-printer-name'. (JobViewer.job_event): Likewise. (JobViewer.add_state_reason_emblem): Use it. (JobViewer.update_job): Likewise. (JobViewer.state_reason_added): Likewise. * jobviewer.py (JobViewer.get_icon_pixbuf): New method. (JobViewer.current_printers_and_jobs): Use it. (JobViewer.job_added): Likewise. (JobViewer.job_removed): Likewise. (JobViewer.job_is_active): New method. (JobViewer.job_added): Use it. (JobViewer.state_reason_added): Likewise. (JobViewer.current_printers_and_jobs): Build active jobs list. (JobViewer.job_added): Maintain it. (JobViewer.job_event): Likewise. (JobViewer.job_removed): Likewise. (JobViewer.state_reason_added): Update status icon. (JobViewer.state_reason_removed): Likewise. (JobViewer.state_reason_removed): Don't return early if a notification for the removed state reason was closed. 2008-03-25 Tim Waugh * system-config-printer.py: Removed dead code (passwd_retry). 2008-03-24 Till Kamppeter * ppds.py (PPDs.orderPPDNamesByPreference): For HP LaserJet 12xx/13xx prefer HPIJS over PostScript, as they do not have enough memory to render complex graphics with their on-board PostScript interpreter. This is a workaround for the time being until HP fixes this in the HPLIP-generated PPDs. 2008-03-22 Till Kamppeter * ppds.py (ppdMakeModelSplit): Improved filtering of driver information from the printer model name, added missing product names "PSC" and "Edgeline" to manufacturer guessing for HP. 2008-03-21 Till Kamppeter * system-config-printer.py (NewPrinterGUI.nextNPTab): Support that HP has now two fax PPDs ("HP Fax" and "HP Fax 2"). (NewPrinterGUI.fillDeviceTab): Likewise. (NewPrinterGUI.get_hpfax_device_id): New method. Get device ID for an HPLIP fax URI, so that correct PPD ("HP Fax" or "HP Fax 2") can get selected. (NewPrinterGUI.get_hplip_uri_for_network_printer): Strip newline from device URI. 2008-03-20 Tim Waugh * system-config-printer.py (GUI.on_copy_activate): Adapted to iconview. * monitor.py (Monitor.get_notifications): Small fix for job_removed calls. (Monitor.get_notifications): Call state_reason_removed for each reason associated with a removed printer. (Watcher.current_printers_and_jobs): Provide printers as well. (Monitor.refresh): Fetch list of printers. (Monitor.get_notifications): Track added and removed printers. (Watcher.printer_added): New method. (Watcher.printer_removed): New method. * jobviewer.py (JobViewer.current_printers_and_jobs): Adjusted. * monitor.py (Watcher.current_jobs): New Watcher interface method. (Monitor.refresh): Call it. * jobviewer.py (JobViewer.current_jobs): Implement it. (JobViewer.refresh): Removed. (JobViewer.__init__): Start with icon hidden; removed dead code. * applet.py (show_version.any_jobs): Just check for jobs, not errors. * jobviewer.py (worst_printer_state_reason): Removed. * monitor.py (Monitor.sort_jobs_by_printer): Better error checking. (Monitor.check_state_reasons): Don't only process connecting-to-device when it is a newly added state reason. * jobviewer.py (JobViewer.state_reason_added): Mark state reason as not notified. (JobViewer.notify_printer_state_reason): Mark state reason as notified. (JobViewer.state_reason_added): Only send a notification if the user has a job on this printer. (JobViewer.job_added): Notify user of current state reasons on this printer. 2008-03-19 Till Kamppeter * system-config-printer.py (NewPrinterGUI.nextNPTab): If a network printer is chosen from the auto-detected printers in the "New Printer" dialog and the printer is an HP MF device with both printer and fax, the user can choose by a pop-up dialog whether he wants to set up a queue for the printer or for the fax. 2008-03-19 Tim Waugh * jobviewer.py (JobViewer.add_job): New method. (JobViewer.update_job): New method. (JobViewer.refresh): Use add_job (JobViewer.update_job_creation_times): Better timer handling. (JobViewer.job_added): New method, part of Watcher interface. (JobViewer.job_event): Likewise. (JobViewer.job_removed): Likewise. (JobViewer.still_connecting): Likewise. (JobViewer.now_connected): Likewise. (JobViewer.state_reason_added): Likewise. * cupshelpers.py (Printer.setAsDefault): New method. * system-config-printer.py (GUI.set_default_printer): Use it. 2008-03-18 Tim Waugh * statereason.py (StateReason.__repr__): New method. * system-config-printer.py (GUI.reconnect): Use authconn.Connection._connect() to reconnect. * jobviewer.py (JobViewer.__init__): Removed password dialog bits. (JobViewer.cupsPasswdCallback): Removed. * contextmenu.py (PrinterContextMenu.popup): Show or hide context menu items. * system-config-printer.glade: Removed password dialog. * system-config-printer.py (GUI.__init__): Don't set CUPS password callback, as this is set in authconn.Connection. (GUI.connect): Likewise. (NewPrinterGUI.getPPDs_thread): Set password callback to empty function. (NewPrinterGUI.getDevices_thread): Likewise. (GUI.cupsPasswdCallback): Removed. (GUI.on_btnPasswdOk_clicked): Removed. (GUI.on_btnPasswdCancel_clicked): Removed. * system-config-printer.py (GUI.on_quit_activate): Clean up context menu and any jobviewers it has launched. * jobviewer.py (JobViewer.__init__): Optional exit_handler function. (JobViewer.cleanup): Call it. * contextmenu.py (PrinterContextMenu.__init__): Track jobviewers. (PrinterContextMenu.cleanup): New method. (PrinterContextMenu.on_jobviewer_exit): New method. * smburi.py: New module. * Makefile.am (nobase_pkgdata_DATA): Ship it. * contextmenu.py: New module. * Makefile.am (nobase_pkgdata_DATA): Ship it. * system-config-printer.py (GUI.populateList): Add default emblem. (PrinterContextMenu.popup): Don't include Set As Default in the context menu if the printer is already the default. (GUI.set_default_printer): New method. (GUI.on_btnPMakeDefault_clicked): Use it. (PrinterContextMenu.on_printer_context_set_as_default_activate): Likewise. (PrinterContextMenu.popup): Don't include Enable or Disable if not possible. (PrinterContextMenu.on_printer_context_enable_activate): New method. (PrinterContextMenu.on_printer_context_disable_activate): New method. (GUI.on_btnApply_clicked): Removed. (GUI.apply): Removed. (GUI.on_delete_activate): Handle the Icon View. (PrinterContextMenu.on_printer_context_delete_activate): New method. (PrinterContextMenu.popup): Disallow actions on discovered printers that require a remote connection. 2008-03-17 Tim Waugh * system-config-printer.py (GUI.__init__): Set initial window size appropriately. (GUI.fillServerTab): Removed old code. (GUI.on_tvMainList_row_activated): Removed. (GUI.on_btnRevert_clicked): Removed. (GUI.fillServerTab): Propagate the exception. (GUI.on_server_settings_activate): Catch the exception and return. (GUI.__init__): Simpler method for setting initial window size. * system-config-printer.glade: Removed unnecessary button box buttons. * system-config-printer.py (GUI.dests_iconview_selection_changed): Only allow copying of a single destination. * system-config-printer.py (main): New option --debug. * man/system-config-printer.xml: Document it. * Makefile.am (run): Run with debugging enabled. * system-config-printer.py (GUI.__init__): Use authconn.Connection. (GUI.on_connect_activate): Pass in the parent window widget. (GUI.connect): Use authconn.Connection. (GUI.reconnect): Likewise. (GUI.on_btnRefresh_clicked): Likewise. * jobviewer.py (JobViewer.on_job_cancel_activate): Use authconn.Connection. (JobViewer.on_job_hold_activate): Likewise. (JobViewer.on_job_release_activate): Likewise. (JobViewer.on_job_reprint_activate): Likewise. * troubleshoot/ErrorLogCheckpoint.py (ErrorLogCheckpoint.enable_clicked): No need to work around adminGetServerSettings weirdness. * troubleshoot/ErrorLogFetch.py (ErrorLogFetch.button_clicked): Likewise. * troubleshoot/base.py: Use debug module. * troubleshoot/__init__.py (run): Likewise. * troubleshoot/ErrorLogFetch.py (ErrorLogFetch.display): Reconnect in case cupsd has restarted. * authconn.py (Connection._authloop): Raise IPPError if adminGetServerSettings returns no settings. * troubleshoot/ErrorLogFetch.py (ErrorLogFetch.button_clicked): Changed to use authconn.Connection. * authconn.py (Connection.__init__): Initialise _use_user correctly. (Connection._set_prompt_allowed): Allow caller to disallow prompting. (Connection._authloop): Handle cups.HTTPError. * troubleshoot/ErrorLogCheckpoint.py (ErrorLogCheckpoint.enable_clicked): Changed to use authconn.Connection. * troubleshoot/Welcome.py (AuthenticationDialog): Removed. Use authconn.Connection instead. * authconn.py: New file. * po/POTFILES.in: Translate it. * Makefile.am (nobase_pkgdata_DATA): Ship it. 2008-03-16 Tim Waugh * jobviewer.py (JobViewer.__init__): Default trayicon to False. (JobViewer.on_delete_event): Cancel subscriptions when run from main applications. * system-config-printer.py (PrinterContextMenu.on_printer_context_view_print_queue_activate): No need to specify trayicon=False. * jobviewer.py: Moved JobManager here and renamed as JobViewer. * po/POTFILES.in: Translate jobviewer. * Makefile.am (nobase_pkgdata_DATA): Ship it. * system-config-printer.py (PrinterContextMenu.on_printer_context_view_print_queue_activate): Updated. * debug.py: New module. * Makefile.am (nobase_pkgdata_DATA): Ship it. * applet.py: Use it. * system-config-printer.py: Likewise. * cupshelpers.py: Likewise. 2008-03-15 Tim Waugh * system-config-printer.py (GUI.populateList): Set tooltips. 2008-03-14 Tim Waugh * system-config-printer.py: Import applet. (PrinterContextMenu.on_printer_context_view_print_queue_activate): Use JobManager to display jobs for selected printers. * applet.py (JobManager.__init__): Add my_jobs and specific_dests arguments. (JobManager.refresh): Use my_jobs argument. (JobManager.get_notifications): Likewise. (JobManager.refresh): Ignore jobs not matching specific_dests. (JobManager.get_notifications): Likewise. * icons/i-network-printer.png: New file. * Makefile.am (nobase_pkgdata_DATA): Ship icon. * system-config-printer.py (GUI.populateList): Use different icon for remote printers. (GUI.dests_iconview_button_release_event): Allow multiple destinations to be selected. * system-config-printer.py (GUI.on_btnApplyApply_clicked): Removed. (GUI.on_btnApplyCancel_clicked): Likewise. (GUI.on_btnApplyDiscard_clicked): Likewise. (GUI): No need to check for unapplied changes. (GUI.on_quit_activate): Likewise. (GUI.on_copy_activate): Likewise. (GUI.setDataButtonState): Only set Installable Options tab weight. (GUI.dests_iconview_button_release_event): Display printer context menu. (PrinterContextMenu): New class. * cupshelpers.py (getPrinters): Avoid fetching printers.conf when not needed. * system-config-printer.py (GUI.dests_iconview_item_activated): Apply changes. (GUI.on_server_settings_activate): New method. 2008-03-13 Tim Waugh * system-config-printer.py: Some changes to cope with the new UI. * system-config-printer.glade: Switch to icon view. * applet.py (JobManager.get_notifications): Ignore jobs that are not owned by the current user. 2008-03-10 Tim Waugh * applet.py (JobManager.get_notifications): Distinguish between failed jobs and jobs that require authentication. 2008-03-07 Tim Waugh * system-config-printer.glade: 'Goto' isn't a word. * system-config-printer.py (GUI.populateList): Fix default printer detection. * troubleshoot/__init__.py (QUESTIONS): Run it. * troubleshoot/CheckPPDSanity.py: New module. * Makefile.am (nobase_pkgdata_DATA): Ship it. * po/POTFILES.in: Translate it. * troubleshoot/CheckLocalServerPublishing.py: New module. * Makefile.am (nobase_pkgdata_DATA): Ship it. * po/POTFILES.in: Translate it. * troubleshoot/__init__.py (QUESTIONS): Run it. * troubleshoot/SchedulerNotRunning.py (SchedulerNotRunning.display): Deal with being run before a printer is chosen. * troubleshoot/__init__.py (QUESTIONS): Check that the scheduler is running very first thing. 2008-03-06 Tim Waugh * troubleshoot/DeviceListed.py: New module. * po/POTFILES.in: Translate it. * Makefile.am: Ship it. * troubleshoot/__init__.py (QUESTIONS): Run it. 2008-03-05 Tim Waugh * cupshelpers.py (Printer.getAttributes): Store all other attributes. * system-config-printer.py (GUI.fillPrinterTab): Use server-is-sharing-printers attribute if present. * applet.py (collect_printer_state_reasons): Fix work-around. (JobManager.get_notifications): Likewise. * system-config-printer.py (NewPrinterGUI.on_btnIPPVerify_clicked): Prevent traceback when failing to fetch printer attributes. 2008-03-03 Tim Waugh * applet.py (JobManager.get_notifications): The notify-printer-uri attribute may not be set. (JobManager.get_notifications): If the printer has been disabled as a result of a failed job, say so. 2008-02-29 Tim Waugh * applet.py (JobManager.update): Make a list of active jobs indexed by printer name. (JobManager.check_state_reasons): Only display a connecting-to-device warning if we have a job processing on that device. (JobManager.toggle_window_display): New force_show parameter. (JobManager.get_notifications): Handle job-stopped event by displaying a dialog when running as a tray icon. (JobManager.print_error_dialog_response): New method. Invoke the troubleshooter if user selects 'Diagnose'. (JobManager.on_troubleshoot_quit): New method. 2008-02-28 Tim Waugh * applet.py (debugprint): New function. (JobManager.__init__): No longer need will_refresh or last_refreshed attributes. (JobManager.__init__): Initialise subscription ID. (JobManager.refresh): Cancel existing subscription and create new subscription. No longer need throttling. (JobManager.cleanup): New method. Cancel subscription. (JobManager.get_notifications): New method. (JobManager.handle_dbus_signal): Use get_notifications instead of refresh. (JobManager.check_still_connecting): Use get_notifications, not refresh. (JobManager.check_state_reasons): Don't take a CUPS connection as argument. For now, open a new connection, although this should not be needed really. (JobManager.update): New method, split out from old refresh method. Don't fetch job list again; we already have enough information. (JobManager.on_job_reprint_activate): Don't need to call refresh now. (JobManager.handle_dbus_signal): Schedule a call to get_notifications. (top level): New --debug option. (state_reason_is_harmless): New function, split out from collect_printer_state_reasons. (collect_printer_state_reasons): Collate reasons by printer name. (worst_printer_state_reason): Handle reasons collation. (JobManager.update_connecting_devices): Likewise. (JobManager.check_state_reasons): Likewise. (JobManager.check_still_connecting): No longer need to connect to CUPS here. (JobManager.check_state_reasons): Likewise. (JobManager.get_notifications): Remove state reasons for deleted printers, and update state reasons for printers whose state has changed. (JobManager.get_notifications): Don't update when the notify-get-interval tells us to; instead, rely on D-Bus for this. (JobManager.refresh): Add printer-deleted and printer-state-changed to the list of interesting events. (JobManager.refresh): Fetch printer state reasons. * troubleshoot/PrintTestPage.py (PrintTestPage.connect_signals): Connect to the system D-Bus. (PrintTestPage.disconnect_signals): Disconnect from D-Bus. (PrintTestPage.handle_dbus_signal): Schedule a refresh. (PrintTestPage.update_jobs_list): Schedule the next refresh according to notify-get-interval. * troubleshoot/ErrorLogParse.py (ErrorLogParse.display): Use log severity indicator. 2008-02-26 Tim Waugh * statereason.py (StateReason.get_description): Handle 'offline' state reason. (StateReason.get_description): Handle 'other' state reason. 2008-02-25 Tim Waugh * applet.py (show_version.monitor_session): Correct comment. 2008-02-20 Tim Waugh * troubleshoot/ErrorLogCheckpoint.py (ErrorLogCheckpoint.display): Remember CUPS server settings for diagnostic output. (ErrorLogCheckpoint.enable_clicked): Likewise. * troubleshoot/Welcome.py (AuthenticationDialog.callback): Don't remember a password if the dialog was cancelled. * troubleshoot/__init__.py (Troubleshooter.answers_as_text): Don't display answers whose tags begin with an underscore. * troubleshoot/ErrorLogCheckpoint.py (ErrorLogCheckpoint.enable_clicked): Don't create a new AuthenticationDialog instance. * troubleshoot/Welcome.py (Welcome.collect_answer): Instantiate AuthenticationDialog. * troubleshoot/base.py (AuthenticationDialog): Moved... * troubleshoow/Welcome.py (AuthenticationDialog): ...here. 2008-02-19 Tim Waugh * configure.in: Version 0.7.82. 2008-02-19 Tim Waugh * troubleshoot/PrintTestPage.py (PrintTestPage.collect_answer.collect_jobs.each): Try to use getJobAttributes if available. * applet.py (JobManager.on_notification_closed): Reset connecting timer when notification is closed. (JobManager.check_state_reasons): Use printer icon in notification bubble. (NewPrinterNotification.NewPrinter): Likewise. * troubleshoot/Shrug.py (Shrug.on_save_clicked): Save as troubleshoot.txt by default. * troubleshoot/ErrorLogParse.py (ErrorLogParse.display): Don't trigger on error_log fetch. * troubleshoot/ErrorLogFetch.py (ErrorLogFetch.__init__): Disable debug logging if we enabled it. (ErrorLogFetch.display): Fetch error_log here instead of in collect_answer. (ErrorLogFetch.connect_signals): New method. (ErrorLogFetch.disconnect_signals): New method. (ErrorLogFetch.button_clicked): New method. Disable debug logging. * troubleshoot/ErrorLogCheckpoint.py (ErrorLogCheckpoint.__init__): Enable debug logging if not set. (ErrorLogCheckpoint.display): Fetch server settings. (ErrorLogCheckpoint.connect_signals): New method. (ErrorLogCheckpoint.disconnect_signals): New method. (ErrorLogCheckpoint.enable_clicked): New method. Enable debug logging. * troubleshoot/base.py (AuthenticationDialog): Added some fixes. * troubleshoot/PrintTestPage.py (PrintTestPage.update_jobs_list): Work around old pycups bug. (PrintTestPage.__init__): Allow other documents to be printed and tracked using a check-box in each job row. (PrintTestPage.update_job): Update columns IDs. (PrintTestPage.display): Update store column types, and initialise check-boxes. (PrintTestPage.test_toggled): New method. (PrintTestPage.connect_signals): Connect toggle signal. (PrintTestPage.disconnect_signals): Disconnect it. (PrintTestPage.collect_answer.collect_jobs.each): Include job attributes for selected jobs. (PrintTestPage.update_jobs_list): Initialise check-box. 2008-02-18 Tim Waugh * troubleshoot/ErrorLogFetch.py: New module. * troubleshoot/ErrorLogCheckpoint.py: New module. * troubleshoot/ErrorLogParse.py: New module. * troubleshoot/__init__.py (QUESTIONS): Run them. * Makefile.am: Ship them. * po/POTFILES.in: Translate them. * troubleshoot/PrinterStateReasons.py (PrinterStateReasons.collect_answer): Fixed traceback. (PrinterStateReasons.display): Use saved state message and reasons. * troubleshoot.py: Moved... * troubleshoot/__init__.py: ...here. * troubleshoot/base.py: Split out from troubleshoot.py. * troubleshoot/CheckNetworkServerSanity.py: Likewise. * troubleshoot/CheckPrinterSanity.py: Likewise. * troubleshoot/ChooseNetworkPrinter.py: Likewise. * troubleshoot/ChoosePrinter.py: Likewise. * troubleshoot/LocalOrRemote.py: Likewise. * troubleshoot/NetworkCUPSPrinterShared.py: Likewise. * troubleshoot/PrinterStateReasons.py: Likewise. * troubleshoot/PrintTestPage.py: Likewise. * troubleshoot/QueueNotEnabled.py: Likewise. * troubleshoot/QueueRejectingJobs.py: Likewise. * troubleshoot/RemoteAddress.py: Likewise. * troubleshoot/SchedulerNotRunning.py: Likewise. * troubleshoot/ServerFirewalled.py: Likewise. * troubleshoot/Shrug.py: Likewise. * troubleshoot/Welcome.py: Likewise. * Makefile.am: Ship new files. * po/POTFILES.in: Translate them. * po/de.po: Updated (bug #433230). 2008-02-17 Tim Waugh * po/fr.po: Updated (bug #433193). 2008-02-14 Tim Waugh * troubleshoot.py (CheckPrinterSanity.display): Don't display unless queue is listed. (ServerFirewalled.display): Likewise. (QueueNotEnabled.display): Likewise. (QueueRejectingJobs.display): Likewise. (PrinterStateReasons.display): Likewise. (PrinterNotListed.display): Don't display if queue is listed. (LocalOrRemote.display): Likewise. (RemoteAddress.display): Likewise. (ChooseNetworkPrinter.display): Likewise. (NetworkCUPSPrinterShared.display): Better restrictions. (NetworkCUPSPrinterEnabled.display): Tighter exception handling. (NetworkCUPSPrinterAccepting.display): Likewise. * applet.py (StateReason): Moved... * statereason.py (StateReason): ...here. New file. * Makefile.am (nobase_pkgdata_DATA): Ship it. 2008-02-13 Tim Waugh * troubleshoot.py (CheckNetworkPrinterSanity.display): Fetch printer attributes if we know the queue name. (ChoosePrinter.cursor_changed): Don't the CheckNetworkPrinterSanity test twice. 2008-02-13 Tim Waugh * configure.in: Version 0.7.81. 2008-02-13 Tim Waugh * troubleshoot.py: Detect CUPS servers that have their TCP port firewalled. * troubleshoot.py (QueueNotEnabled.display): More explanation. (ChooseNetworkPrinter.display): Skip over default entry. (ChoosePrinter.display): Likewise. * my-default-printer.py (Server.getUserDefault): Fixed breakage caused by pycups change. (Server.getSystemDefault): Use getDefault if available. 2008-02-12 Tim Waugh * system-config-printer.py (NewPrinterGUI.nextNPTab): Moved remote CUPS test to the right place (Ubuntu #178727). 2008-02-07 Tim Waugh * troubleshoot.py (PrintTestPage.__init__): Add a 'Cancel All Jobs' button. (PrintTestPage.cancel_clicked): New method. (PrintTestPage.update_jobs_list): Display all jobs on that printer, not just our test pages. (PrintTestPage.update_job): New method. (PrintTestPage.display): Use it. (PrintTestPage.update_jobs_list): Likewise. (AuthenticationDialog): New class. (PrintTestPage.update_jobs_list): Record test page completion notify-text messages for diagnostic output. 2008-02-06 Tim Waugh * troubleshoot.py (ChoosePrinter.display): Handle CUPS connection failure. (PrinterNotListed.can_click_forward): No more questions to ask. (PrinterStateReasons.display): Fetch the printer-state-message and printer-state-reasons fresh from the server. (PrinterStateReasons.display): Work around a pycups bug. (PrinterStateReasons.collect_answer): Record state message and reasons for diagnostic output. * system-config-printer.glade: Align widgets on the Policies tab. 2008-02-05 Tim Waugh * troubleshoot.py (PrintTestPage): Improvements to the job display. 2008-02-04 Tim Waugh * configure.in: Version 0.7.80. 2008-02-04 Tim Waugh * troubleshoot.py (Troubleshooter.answers_as_text): Don't translate this. * po/POTFILES.in: Added troubleshoot.py. * system-config-printer.py (GUI.on_troubleshoot_activate): Run the trouble-shooter. * troubleshoot.py: New file. * Makefile.am: Ship it. 2008-02-01 Tim Waugh * system-config-printer.py (NewPrinterGUI.browse_ipp_queues_thread): Fix enumeration of classes. 2008-01-31 Tim Waugh * config.py.in: Set DOWNLOADABLE_DRIVER_SUPPORT. * system-config-printer.py: Remove downloadable driver support if not enabled in config module. * ppds.py (PPDs._findBestMatchPPDs): Fixed thinko. * system-config-printer.py (NewPrinterGUI.on_tvNPDownloadableDrivers_cursor_changed): Fixed typo. * system-config-printer.glade: Line wrap long label. 2008-01-30 Tim Waugh * openprinting.py (OpenPrinting.listDrivers.parse_result): Don't normalize space in licensetext. * system-config-printer.py (NewPrinterGUI.fillDeviceTab): Disabled slow HPLIP URI look-ups until they are moved to the right place. * system-config-printer.py (NewPrinterGUI.openprinting_drivers_found): Display traceback for debugging. (NewPrinterGUI.on_tvNPDownloadableDrivers_cursor_changed): Fill in driver properties. * openprinting.py (OpenPrinting.listDrivers.parse_result): File's url attribute was missing. (QueryThread.run): Print query URL for debugging. (OpenPrinting.listDrivers.parse_result): Re-work data type for XML format change. (OpenPrinting.listDrivers.parse_result): Include functionality elements. (normalize_space): New function. (OpenPrinting.listDrivers.parse_result): Normalize space. 2008-01-29 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_rbtnNPFoomatic_toggled): Better logic for search widget sensitivity. (NewPrinterGUI.openprinting_printers_found): Use threads_enter/threads_leave. (NewPrinterGUI.on_cmbNPDownloadableDriverFoundPrinters_changed): Start a query for drivers. (NewPrinterGUI.openprinting_drivers_found): New method. (NewPrinterGUI.nextNPTab): Display wait window if driver query is still in progress. (NewPrinterGUI.on_rbtnNPFoomatic_toggled): Properly cancel out the search operation. (NewPrinterGUI.openprinting_drivers_found): Populate downloadable drivers list and hide wait window. (NewPrinterGUI.on_tvNPDownloadableDrivers_cursor_changed): New method. (NewPrinterGUI.on_cmbNPDownloadableDriverFoundPrinters_changed): Cancel any driver query in progress. (NewPrinterGUI.fillDownloadableDrivers): Avoid traceback when there are no drivers returned. (NewPrinterGUI.on_btnNPDownloadableDriverSearch_clicked): Cancel out the driver search operation if a new printer search is performed. * openprinting.py (QueryThread.__init__): Set query thread as daemon to prevent open queries from keeping the application running. * system-config-printer.py (NewPrinterGUI.openprinting_printers_found): Simplified code. 2008-01-28 Tim Waugh * system-config-printer.py: Import the openprinting module. (NewPrinterGUI.__init__): Additional set-up for OpenPrinting widgets. (NewPrinterGUI.setNPButtons): If downloading a driver, check that a model is selected before proceeding. (NewPrinterGUI.on_btnNPDownloadableDriverSearch_clicked): New method. (NewPrinterGUI.openprinting_printers_found): New method. (NewPrinterGUI.on_cmbNPDownloadableDriverFoundPrinters_changed): New method. (NewPrinterGUI.__init__): Initialise search handle. (NewPrinterGUI.on_NPCancel): Cancel search. (NewPrinterGUI.openprinting_printers_found): Clear search handle. (NewPrinterGUI.init): Initialise search widgets. (NewPrinterGUI.openprinting_printers_found): When only one printer is found from the search, select it automatically. (NewPrinterGUI.init): Set search button label. (NewPrinterGUI.on_btnNPDownloadableDriverSearch_clicked): Update search button label. (NewPrinterGUI.openprinting_printers_found): Reset search button label. * openprinting.py (OpenPrinting.searchPrinters.parse_result): Don't call the callback twice on error; instead display a useful traceback. 2008-01-25 Tim Waugh * openprinting.py (OpenPrinting): Fixed test app threading. 2008-01-25 Tim Waugh * configure.in: Version 0.7.79. 2008-01-25 Tim Waugh * openprinting.py: New module. * Makefile.am: Ship it and install it. * system-config-printer.py (NewPrinterGUI.__init__): No need to fetch labels we aren't going to do anything with. (NewPrinterGUI.on_rbtnNPFoomatic_changed): Set sensitivity of downloadable driver widgets as a group. (NewPrinterGUI.__init__): Disable downloadable driver support until it's working. 2008-01-18 Tim Waugh * system-config-printer.py (GUI.reconnect): Better reconnection method. (GUI.save_serversettings): Really refresh server settings after applying changes. (NewPrinterGUI.get_hplip_uri_for_network_printer): Add debugging output. (NewPrinterGUI.getNetworkPrinterMakeModel): Likewise. 2008-01-17 Till Kamppeter * system-config-printer.glade: Added search button and printer list combo box to the search term input field for finding drivers. So the user can select his printer first and then see the downloadable drivers. 2008-01-16 Tim Waugh * applet.py (JobManager.on_treeview_button_press_event): Use job-preserved to control whether reprint is allowed, as with the CUPS web interface (bug #423441). * system-config-printer.py (GUI.save_serversettings): Refresh server settings after applying changes (bug #421431). * applet.py (NewPrinterNotification.install_driver): New method. (NewPrinterNotification.NewPrinter): Prompt for driver installation if needed (bug #379321). 2008-01-11 Till Kamppeter * system-config-printer.py (pollDownloadableDrivers): Added code for querying the OpenPrinting database for downloadable drivers. 2008-01-11 Tim Waugh * system-config-printer.py (GUI.on_btnRefresh_clicked): Try to reconnect if not connected. 2008-01-10 Till Kamppeter * system-config-printer.py: Started on the code to make the new GUI elements for the automatic driver download working. * system-config-printer.glade: Added GUI for automatic driver download from the OpenPrinting web site. Updated list of authors in the "About" dialog. 2008-01-08 Tim Waugh * applet.py (JobManager.update_job_creation_times): Fill in number of hours. 2008-01-07 Till Kamppeter * cupshelpers.py: If the device discovery output of a CUPS backend has "Unknown" for make and model but something useful in the info field, copy the info field into the make-and-model field. * ppds.py: Derive manufacturer name from model name if the manufacturer name is missing in the Nickname or make-and-model string. Remove "(Bluetooth)" from model name for more reliable matching. Handle the manufacturer name "KONICA MINOLTA" correctly (Ubuntu #64046). Use case-insensitive when cleaning model names. For "recommended" Foomatic PPDs give higher priority than a vendor PPD in case of the recommended driver being not "Postscript" and lower priority otherwise. So if using the printer in PostScript mode is recommended, the vendor PPD will be preferred, if another mode of the printer is recommended (like PCL on HP LaserJet 12xx/13xx) the appropriate non-PostScript PPD will be used (Ubuntu #172550). * system-config-printer.py: Allow listing of all files in file chooser dialog for selecting a custom PPD file. This way also PPDs without the ".ppd" extension can be selected (Ubuntu #153585). 2008-01-04 Till Kamppeter * system-config-printer.py, ppds.py: Make automatic recognition of make and model of Bluetooth-connected printers working. 2007-12-20 Tim Waugh * system-config-printer.glade: Make the Wait window a top-level window not a pop-up (Ubuntu #175766). * system-config-printer.py (GUI.populateList): Only try to fetch the default printer if we have a CUPS connection (Ubuntu #159212). (GUI.on_tvMainList_cursor_changed): Set data button state when no CUPS connection. * system-config-printer.py (NewPrinterGUI.on_entSMBURI_changed): SMB browser is no longer in the same window as the editable URI (Ubuntu #173115). * system-config-printer.py (debugprint): New function. (nonfatalException): Use it. (GUI.on_btnPMakeDefault_clicked): Likewise. (GUI.on_btnPrintTestPage_clicked): Likewise. (NewPrinterGUI.queryPPDs): Likewise. (NewPrinterGUI.getPPDs_thread): Likewise. (NewPrinterGUI.fetchPPDs): Likewise. (NewPrinterGUI.queryDevices): Likewise. (NewPrinterGUI.getDevices_thread): Likewise. (NewPrinterGUI.fetchDevices): Likewise. (NewPrinterGUI.on_btnIPPVerify_clicked): Likewise. (NewPrinterGUI.getNPPPD): Likewise. * cupshelpers.py (debugprint): New function for printing without propagating print exceptions (Ubuntu #175500). (copyPPDOptions): Use it. (setPPDPageSize): Likewise. (missingPackagesAndExecutables.pathcheck): Likewise. (missingPackagesAndExecutables): Likewise. 2007-12-14 Tim Waugh * cupshelpers.py (missingPackagesAndExecutables): Moved this function here... * system-config-printer.py (NewPrinterGUI.checkDriverExists): ...from here. 2007-12-14 Tim Waugh * applet.py (StateReason.__cmp__): Fixed use of __cmp__ (Ubuntu #149393). 2007-12-12 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_btnIPPVerify_clicked): Fixed typo. 2007-12-03 Till Kamppeter * cupshelpers.py (getPrinters): Determine via printers.conf whether an IPP queue was locally defined or whether it appears induced by a broadcasted remote queue. * system-config-printer.py (nextNPTab): If an IPP queue from a remote CUPS server gets auto-detected create a local raw queue, so that the driver from the server gets used. Such CUPS queues are queues which are advertised by the server only via DNS-SD/mDNS/Bonjour/ZeroConf as for example from Mac OS X servers. They can be detected via the dnssd backend from http://www.linuxprinting.org/download/printing/dnssd (on_tvMainList_cursor_changed, fillPrinterTab): Allow deleting/editing of local raw IPP queues which point to a remote CUPS queue. (checkNPName): Do not allow silent overwriting of locally defined raw IPP queues pointing to a remote CUPS queue. (on_tvNPDevices_cursor_changed): Fixed bug of IPP printer setup GUI not showing the printer parameters when selecting an auto-detected IPP printer (getNPPPD): Fixed traceback when creating a raw queue. (nextNPTab): When stepping back with the "Previous" button in the "New printer" wizard the empty "Installed Options" screen was not skipped. 2007-11-30 Tim Waugh * applet.py: Fixed New Printer notifications after they got broken by the icon hiding changes. 2007-11-29 Tim Waugh * ppds.py (PPDs.__init__): For C/POSIX locale, filter PPDs by American English. * system-config-printer.py (NewPrinterGUI.fillDriverList): Include PPD language in driver description (Ubuntu #161037). * applet.py (JobManager.refresh): If there are no jobs but there is a printer warning/error indicated by the icon, set the icon tooltip to the reason description. (JobManager.__init__): Fix printer status window columns so that the full printer name can be seen. 2007-11-27 Tim Waugh * system-config-printer.glade: Set printer icon in Connect dialog. * system-config-printer.py (GUI.__init__): Set AboutDialog logo by icon name, set URL and email hooks, set icon (Ubuntu #165101). * applet.glade: Set Ctrl+R accelerator for Refresh menu entry (Ubuntu #137984). * system-config-printer.py (GUI.fillPrinterTab): Fetch attributes on demand. * cupshelpers.py (Printer.getAttributes): Make this method public. (Printer.__init__): Don't fetch attributes automatically. * system-config-printer.py (NewPrinterGUI.browse_ipp_queues_thread): Handle exceptions other than RuntimeError and cups.IPPError (bug #252304). (NewPrinterGUI.on_btnIPPVerify_clicked): Get printer attributes by printer URI not name, to prevent pycups constructing a CUPS URI (bug #252304). 2007-11-22 Till Kamppeter * print-applet.desktop.in: Removed the last printer.png (Ubuntu package did not build with Icon=printer.png in the .desktop file). 2007-11-22 Tim Waugh * configure.in: Version 0.7.78. 2007-11-22 Tim Waugh * applet.py (JobManager.check_state_reasons): Emblems and notifications make the icon useful. For notifications, make the icon visible if it was not previously visible. For emblems, do not hide the icon if currently visible (Ubuntu #151360). (JobManager.on_icon_hide_activate): When hiding the icon, allow it to become visible next time a job is submitted. (JobManager.__init__): Attach signal receiver after everything is correctly initialised. 2007-11-21 Tim Waugh * cupshelpers.py (activateNewPrinter): Use getDefault (or, failing that, getDests) to find whether a default printer is set. * system-config-printer.py (GUI.populateList): Likewise. * system-config-printer.py (GUI.on_btnPrintTestPage_clicked): Better check for whether the CUPS server is local. 2007-11-19 Tim Waugh * applet.py (NewPrinterNotification.any_jobs_or_errors): Fixed typo (bug #390431). * system-config-printer.py (NewPrinterGUI.on_btnNPApply_clicked): Handle unexpected exceptions a little bit better. (fatalException): New function. 2007-11-15 Tim Waugh * system-config-printer.py (GUI.getSelectedItem): Decode GtkStore value from UTF-8. 2007-11-14 Tim Waugh * system-config-printer.glade: Add a blank page to the main window's right-pane notebook for occasions when there is a problem fetching information about the printer. * system-config-printer.py (GUI.on_tvMainList_cursor_changed): When cupsGetPPD2() fails this is not fatal (bug #382031). 2007-11-13 Tim Waugh * applet.py (WaitForJobs): New class to throttle the rate of checking for jobs or error messages when in start-up mode. This prevents the applet being a nuisance when a large number of CUPS administration operations are performed in a batch. 2007-11-11 Tim Waugh * manage-print-jobs.desktop.in, my-default-printer.desktop.in, system-config-printer.desktop.in: Don't require PNG format icon (Ubuntu #152634). 2007-11-06 Tim Waugh * system-config-printer.glade: Better widget layouts for JetDirect and IPP device types in the New Printer dialog. * system-config-printer.py (NewPrinterGUI.update_IPP_URI_label): Show the IPP queue name widget and update the forward/backward buttons. (NewPrinterGUI.on_tvNPDevices_cursor_changed): Set the queue to a sensible CUPS template. 2007-10-31 Tim Waugh * ppds.py (main): Allow stand-alone Device ID testing. 2007-10-30 Tim Waugh * configure.in: Version 0.7.77. 2007-10-30 Tim Waugh * system-config-printer.glade: Removed reference to applet.png. * system-config-printer.glade: Tooltips for the button bar buttons (bug #335601). 2007-10-23 Tim Waugh * applet.py (StateReason): Better state reason icon names. 2007-10-18 Tim Waugh * applet.py (JobManager.check_state_reasons): Reverted testing change. 2007-10-17 Tim Waugh * print-applet.desktop.in: Removed reference to applet.png. * applet.png: Removed. * inspecting-printer.png: Removed. * Makefile.am: Removed references to shipped icons. * applet.py (ICON, JobManager.__init__): Use 'printer' named icon from theme (Ubuntu #152634). * applet.py (StateReason): Use named icons for state reason severities (part of Ubuntu #152634). (JobManager.check_state_reasons): Load them from the theme. (JobManager.set_printer_status_icon): Likewise. * manage-print-jobs.desktop.in (Icon): Likewise. * applet.py (JobManager.set_special_status_icon, NewPrinterNotification.GetReady): Use 'document-print-preview' named icon from theme (Ubuntu #152634). 2007-10-16 Tim Waugh * applet.py: Reverted mistaken commit (Ubuntu #149572). 2007-10-15 Tim Waugh * po/no.po: Removed (bug #332381). * configure.in (ALL_LINGUAS): Removed 'no'. * Makefile.am (fix-glade): Remove toolbar_style property so as not to over-ride the session preferences (Ubuntu #135844). 2007-10-15 Tim Waugh * configure.in: Version 0.7.76. 2007-10-15 Tim Waugh * applet.py (JobManager.__init__): Set text domain for Glade (Ubuntu #149572). 2007-10-05 Tim Waugh * ppds.py (PPDs._findBestMatchPPDs): Efficiency improvement (don't run lower() on the loop-constant string). (PPDs._findBestMatchPPDs): The model search should be performed in model order. 2007-10-05 Till Kamppeter * ppds.py (_findBestMatchPPDs): Do case-insensitive match when matching "most important" word. Especially important for matching Canon printers (Ubuntu #149264). 2007-10-05 Tim Waugh * system-config-printer.glade: SMB device screen padding changes. * system-config-printer.py (NewPrinterGUI.update_IPP_URI_label): New method. (NewPrinterGUI.on_entNPTIPPHostname_changed): Use it. (NewPrinterGUI.on_entNPTIPPQueuename_changed): New method. (NewPrinterGUI.on_btnIPPVerify_clicked): New method. (NewPrinterGUI.browse_ipp_queues_thread): Display a different message when the IPP request failed. * system-config-printer.glade: Another IPP browse change. * pysmb.py: More consistency and care in building command lines. 2007-10-03 Till Kamppeter * my-default-printer.py: Corrected gettext domain (Ubuntu #147788). 2007-10-02 Tim Waugh * system-config-printer.py (GUI.on_server_changed): Fixed change tracking. (GUI.fillServerTab): Set sensitivity of 'Allow printing from the Internet' (Ubuntu #146471). (GUI.save_printer): Fetch server settings if printer was saved. This allows us to update the 'not published' label earlier. * applet.py (StateReason.__cmp__): Fixed typo (Ubuntu #148022). * system-config-printer.glade: Wrap explanation text for other job options (Ubuntu #148010). 2007-10-01 Tim Waugh * system-config-printer.py (GUI.on_server_changed): Fixed traceback (Ubuntu #139192). * my-default-printer.py (Dialog.run): Disable the Set Default button when there are no printers available (Ubuntu #146925). * system-config-printer.glade: Give a proper name to the Connect button. * system-config-printer.py (GUI.on_connect_servername_changed): Disable the Connect button when the server name is empty (Ubuntu #147450). 2007-09-28 Tim Waugh * cupshelpers.py: Removed shebang. (Printer.setOption): Convert floating point values to strings in a locale-safe manner (Ubuntu #145693). (Printer._getAttributes): Avoid mis-interpreting '1,2'-type values. * system-config-printer.py (GUI.fillPrinterTab): Handle strange options a little bit more gracefully. * system-config-printer.py: Don't import cupsd module. * cupsd.py: Removed. * Makefile.am: Don't ship cupsd.py. * system-config-printer.glade: Alignment fixes for SMB device page. 2007-09-27 Tim Waugh * ppds.py (PPDs.__ini