diff --git a/debian/drprint.debhelper.log b/debian/drprint.debhelper.log deleted file mode 100644 index 480656b..0000000 --- a/debian/drprint.debhelper.log +++ /dev/null @@ -1,78 +0,0 @@ -dh_prep -dh_installdirs -dh_installchangelogs -dh_installdocs -dh_installexamples -dh_installman -dh_link -dh_compress -dh_fixperms -dh_installdeb -dh_gencontrol -dh_md5sums -dh_builddeb -dh_prep -dh_installdirs -dh_installchangelogs -dh_installdocs -dh_installexamples -dh_installman -dh_link -dh_compress -dh_fixperms -dh_installdeb -dh_gencontrol -dh_md5sums -dh_builddeb -dh_prep -dh_installdirs -dh_installchangelogs -dh_installdocs -dh_installexamples -dh_installman -dh_link -dh_compress -dh_fixperms -dh_installdeb -dh_gencontrol -dh_md5sums -dh_builddeb -dh_prep -dh_installdirs -dh_installchangelogs -dh_installdocs -dh_installexamples -dh_installman -dh_link -dh_compress -dh_fixperms -dh_installdeb -dh_gencontrol -dh_md5sums -dh_builddeb -dh_prep -dh_installdirs -dh_installchangelogs -dh_installdocs -dh_installexamples -dh_installman -dh_link -dh_compress -dh_fixperms -dh_installdeb -dh_gencontrol -dh_md5sums -dh_builddeb -dh_prep -dh_installdirs -dh_installchangelogs -dh_installdocs -dh_installexamples -dh_installman -dh_link -dh_compress -dh_fixperms -dh_installdeb -dh_gencontrol -dh_md5sums -dh_builddeb diff --git a/debian/drprint.substvars b/debian/drprint.substvars deleted file mode 100644 index abd3ebe..0000000 --- a/debian/drprint.substvars +++ /dev/null @@ -1 +0,0 @@ -misc:Depends= diff --git a/debian/drprint/DEBIAN/control b/debian/drprint/DEBIAN/control deleted file mode 100644 index 056dfc5..0000000 --- a/debian/drprint/DEBIAN/control +++ /dev/null @@ -1,12 +0,0 @@ -Package: drprint -Version: 0.7-1 -Architecture: all -Maintainer: Leonardo Robol <leo@robol.it> -Installed-Size: 184 -Section: unknown -Priority: extra -Homepage: <insert the upstream URL, if relevant> -Description: Interfaccia GTK per stampare sulle stampanti di dm.unipi.it - Interfaccia GTK che permette di mandare in stampa file - ps e pdf sulle stampanti del dipartimento di matematica - a Pisa a patto di avere accesso SSH al server ssh.dm.unipi.it diff --git a/debian/drprint/DEBIAN/md5sums b/debian/drprint/DEBIAN/md5sums deleted file mode 100644 index 08ade8d..0000000 --- a/debian/drprint/DEBIAN/md5sums +++ /dev/null @@ -1,18 +0,0 @@ -210b7fdd83ad02e6844ca947e51b5b65 usr/share/doc/drprint/copyright -cb7bcbb054006f354d3691ffaf31ab01 usr/share/doc/drprint/changelog.Debian.gz -fe6673b9521294403f77f7aa80e76e62 usr/share/doc/drprint/README.Debian -f7aa3012efd5b01be9c79d0639ec1350 usr/local/bin/drprint -3c8b12fdabe14320b348e7486eb70c24 usr/local/lib/python2.6/dist-packages/DrPrintGui/Dialogs.py -2baa975a03736b1864533548e3ec92b5 usr/local/lib/python2.6/dist-packages/DrPrintGui/Input.py -d28e3f4433e3c1f554bc9666747c64d2 usr/local/lib/python2.6/dist-packages/DrPrintGui/MainWin.py -d530e81daad1d4be359861c71fe6a7bf usr/local/lib/python2.6/dist-packages/DrPrintGui/Dialogs.pyc -d41d8cd98f00b204e9800998ecf8427e usr/local/lib/python2.6/dist-packages/DrPrintGui/__init__.py -30705d4ecde4b4de1f16a7ed9d30295c usr/local/lib/python2.6/dist-packages/DrPrintGui/__init__.pyc -b13bdc711aac44159c422d5aa1fd7191 usr/local/lib/python2.6/dist-packages/DrPrintGui/MainWin.pyc -d01fa8ab27243b43006e416b8800e72f usr/local/lib/python2.6/dist-packages/DrPrintGui/Input.pyc -6e95598efbfcd3cedb2df0d55083d28e usr/local/lib/python2.6/dist-packages/DrPrintBackend.pyc -d017a23432b720ea110a28f498d2673a usr/local/lib/python2.6/dist-packages/DrPrintBackend.py -67ff218ed969602f5df1cc016298c2ad usr/local/lib/python2.6/dist-packages/DrPrint-0.3.egg-info -4a2f988e188fe1218305de5f13fc7af7 usr/local/share/applications/drprint.desktop -267aed785f5614bab9a43ed7dfcb96bd usr/local/share/pixmaps/drprint.png -b4149fabeb9884087e0730bca5cb5073 usr/local/share/drprint/drprint_gui.png diff --git a/debian/drprint/usr/local/bin/drprint b/debian/drprint/usr/local/bin/drprint deleted file mode 100755 index ce877e4..0000000 --- a/debian/drprint/usr/local/bin/drprint +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env python - -import gtk, pygtk -from DrPrintGui.MainWin import MainWin -from DrPrintBackend import Backend - -if __name__ == "__main__": - - - ## Load the Backend that will perform - ## all the hard work without being seen - ## by the end user. That is -- the sad - ## story of every backend. - backend = Backend() - - ## ...and then the main win! The one - ## that will try to attract end user - ## with her .. ( find a good word ) - ## P.S.: We give her a backend, without - ## it she will be useless. - mw = MainWin(backend) - - ## Show all :) - mw.show() - - ## ..and let's go! - gtk.main() diff --git a/debian/drprint/usr/local/lib/python2.6/dist-packages/DrPrint-0.3.egg-info b/debian/drprint/usr/local/lib/python2.6/dist-packages/DrPrint-0.3.egg-info deleted file mode 100644 index 81bb9ff..0000000 --- a/debian/drprint/usr/local/lib/python2.6/dist-packages/DrPrint-0.3.egg-info +++ /dev/null @@ -1,10 +0,0 @@ -Metadata-Version: 1.0 -Name: DrPrint -Version: 0.3 -Summary: UNKNOWN -Home-page: http://www.robol.it/~leonardo/ -Author: Leonardo Robol -Author-email: leo@robol.it -License: GPL -Description: UNKNOWN -Platform: UNKNOWN diff --git a/debian/drprint/usr/local/lib/python2.6/dist-packages/DrPrintBackend.py b/debian/drprint/usr/local/lib/python2.6/dist-packages/DrPrintBackend.py deleted file mode 100644 index 190f5f2..0000000 --- a/debian/drprint/usr/local/lib/python2.6/dist-packages/DrPrintBackend.py +++ /dev/null @@ -1,90 +0,0 @@ -## Some useful function to help DrPrint to -# -*- coding: utf-8 -*- - -import paramiko, gobject - -class Backend(gobject.GObject): - - def __init__(self): - super(Backend, self).__init__() - - gobject.signal_new("auth_failed", Backend, gobject.SIGNAL_RUN_FIRST, None, ()) - gobject.signal_new('io_error', Backend, gobject.SIGNAL_RUN_FIRST, None, ()) - - def send_print(self, printer, username, password, page_per_page, filename, page_range, copies, orientation, sides): - # Get printer name - print "Selected printer: %s" % printer - - # Get connection - client = paramiko.SSHClient() - client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) - - try: - client.connect('ssh.dm.unipi.it', - port=22, - username=username, - password=password) - except paramiko.AuthenticationException, e: - self.emit('auth_failed') - return - - channel = client.get_transport().open_session() - - print "Printing %s" % filename - - try: - f = open(filename, 'r') - except IOError: - self.emit('io_error') - return - - # Questo è inevitabile.. :) - cmd = "lpr -P%s " % printer - - # Nunmero di pagine - if copies.isdigit(): - cmd = cmd + "-# %s " % copies - - - cmd_opts = "" - - ## Pagine logiche per pagine - if not page_per_page == 1: - cmd_opts += "-o number-up=%s " % str(page_per_page) - - ## Da a - if not page_range == None: - cmd_opts += "-o page-ranges=%s " % page_range - - ## Orientazione (se è vuoto è verticale) - if not orientation == "": - cmd_opts += "-o %s " % orientation - - ## Long edge, short edge ed amici vari - cmd_opts += "-o sides=%s " % sides - - ## Se ci sono opzioni dai il -o e specificale - if not cmd_opts == "": - cmd = cmd + "%s" % cmd_opts - - - ## Diamo il comando sul canale e infiliamo il file - ## dentro lo stdin :) - print "Eseguo %s" % cmd - - channel.exec_command(cmd) - try: - content = f.read() - except IOError: - self.emit('io_error') - return - - try: - channel.sendall( content ) - except socket.timeout, socket.error: - self.emit('io_error') - return - f.close() - channel.close() - - print "Printed %s on %s" % (filename, printer) diff --git a/debian/drprint/usr/local/lib/python2.6/dist-packages/DrPrintGui/Dialogs.py b/debian/drprint/usr/local/lib/python2.6/dist-packages/DrPrintGui/Dialogs.py deleted file mode 100644 index e3c2e88..0000000 --- a/debian/drprint/usr/local/lib/python2.6/dist-packages/DrPrintGui/Dialogs.py +++ /dev/null @@ -1,39 +0,0 @@ -import gtk, pygtk - -class Dialog(gtk.MessageDialog): - - def __init__(self, buttons=gtk.BUTTONS_NONE, mtype=gtk.MESSAGE_INFO): - - gtk.MessageDialog.__init__(self, - parent = None, - flags = 0, - type = mtype, - buttons = buttons) - - -class ErrorDialog(Dialog): - - def __init__(self, error, message): - - Dialog.__init__(self, - buttons = gtk.BUTTONS_OK, - mtype = gtk.MESSAGE_ERROR - ) - - self.set_markup(error) - self.format_secondary_markup(message) - - -class MessageDialog(Dialog): - - def __init__(self, title, text): - - Dialog.__init__(self, - buttons = gtk.BUTTONS_OK_CANCEL, - mtype = gtk.MESSAGE_WARNING - ) - - self.set_markup(title) - self.format_secondary_markup(text) - - diff --git a/debian/drprint/usr/local/lib/python2.6/dist-packages/DrPrintGui/Input.py b/debian/drprint/usr/local/lib/python2.6/dist-packages/DrPrintGui/Input.py deleted file mode 100644 index b008115..0000000 --- a/debian/drprint/usr/local/lib/python2.6/dist-packages/DrPrintGui/Input.py +++ /dev/null @@ -1,375 +0,0 @@ -## This library provides User Input fields - -import gtk, pygtk, gobject, os - -class LeftAlignedLabel(gtk.Alignment): - - def __init__(self, markup, left_padding=0): - - gtk.Alignment.__init__(self, 0,0.5,0,0) - - label = gtk.Label() - label.set_markup(markup) - plw = PaddingLeftWidget(label, left_padding) - - self.add(plw) - plw.show() - -class PaddingLeftWidget(gtk.Table): - - def __init__(self, widget, padding_left): - - gtk.Table.__init__(self, 1, 2, False) - label = gtk.Label() - self.set_col_spacing(0, padding_left) - self.attach(label, 0,1,0,1, False, False) - self.attach(widget, 1,2,0,1, False, False) - - label.show() - widget.show() - - -class UsernameField(gtk.Entry): - - def __init__(self, parent=None): - - gtk.Entry.__init__(self) - - self.set_text( os.getenv("USER") ) - - -class PasswordField(gtk.Entry): - - def __init__(self, parent=None): - - gtk.Entry.__init__(self) - - self.set_text ("Password") - self.set_visibility(False) - -class AuthBlock(gtk.HBox): - - def __init__(self, default_spacing=5, left_padding=0): - - gtk.HBox.__init__(self) - - self.user_field = UsernameField() - self.password_field = PasswordField() - - vbox1 = gtk.VBox() - vbox2 = gtk.VBox() - - label = LeftAlignedLabel("Utente", 20) - vbox1.pack_start( label ) - label.show() - - label = LeftAlignedLabel("Password", 20) - vbox1.pack_start( label ) - label.show() - - vbox2.pack_start(self.user_field) - vbox2.pack_start(self.password_field) - - self.user_field.show() - self.password_field.show() - - self.pack_start(vbox1) - self.pack_start(vbox2) - - vbox1.show() - vbox2.show() - - def get_username(self): - return self.user_field.get_text() - - def get_password(self): - return self.password_field.get_text() - -class PrintButton(gtk.Button): - - def __init__(self, parent=None): - - gtk.Button.__init__(self, "Stampa") - - -class SelectFileWidget(gtk.HBox): - - def __init__(self): - gtk.HBox.__init__(self) - self.set_spacing (5) - - self.Filename = gtk.Entry() - self.Browser = gtk.Button("Sfoglia") - - self.Filename.set_tooltip_text("Se hai bisogno di stampare \ -da un programma clicca File -> Stampa -> Stampa su file e crea un \ -file .ps da selezionare qui") - - self.Browser.connect('clicked', self.SelectFile) - - self.pack_start(self.Filename, 1) - self.pack_start(self.Browser, 1) - self.Filename.show() - self.Browser.show() - - def SelectFile(self, window): - - chooser = gtk.FileChooserDialog( - title = "Seleziona file da stampare", - parent = None, - action=gtk.FILE_CHOOSER_ACTION_OPEN, - buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OPEN, gtk.RESPONSE_OK) ) - if chooser.run() == gtk.RESPONSE_OK: - self.Filename.set_text(chooser.get_filename()) - - chooser.destroy() - - def GetFile(self): - return self.Filename.get_text() - - -class PrinterComboBox(gtk.HBox): - - def __init__(self): - - gtk.HBox.__init__(self) - self.combobox = gtk.combo_box_new_text() - self.combobox.append_text("cdc7") - self.combobox.append_text("cdcpt") - self.combobox.append_text("cdc8") - self.combobox.append_text("cdc4") - self.combobox.append_text("cdc9") - - self.combobox.set_active(1) - - self.pack_start( self.combobox ) - self.combobox.show() - - def get_printer(self): - return self.combobox.get_active_text() - - -class PagePerPageComboBox(gtk.HBox): - - def __init__(self): - gtk.HBox.__init__(self) - self.combobox = gtk.combo_box_new_text() - self.combobox.append_text("1") - self.combobox.append_text("2") - self.combobox.append_text("4") - - self.combobox.set_active(0) - - self.pack_start( self.combobox ) - self.combobox.show() - - def get_page_per_page(self): - return self.combobox.get_active_text() - -class PrinterSettingsBlock(gtk.HBox): - - def __init__(self, default_spacing = 5, left_padding=0): - - gtk.HBox.__init__(self) - - vbox1 = gtk.VBox(False, default_spacing) - vbox2 = gtk.VBox(False, default_spacing) - - self.set_spacing(default_spacing) - - label = LeftAlignedLabel("Stampante", 20) - vbox1.pack_start(label) - label.show() - - self.printer_chooser = PrinterComboBox() - vbox2.pack_start( self.printer_chooser ) - self.printer_chooser.show() - - label = LeftAlignedLabel("File", 20) - vbox1.pack_start( label ) - label.show() - - self.select_file_widget = SelectFileWidget() - vbox2.pack_start (self.select_file_widget) - self.select_file_widget.show() - - label = LeftAlignedLabel("Pagine per foglio", 20) - vbox1.pack_start(label) - label.show() - - self.page_per_page = PagePerPageComboBox() - vbox2.pack_start(self.page_per_page) - self.page_per_page.show() - - label = LeftAlignedLabel("Numero di copie", 20) - vbox1.pack_start(label) - label.show() - - self.copies = CopiesField() - vbox2.pack_start(self.copies) - self.copies.show() - - self.pack_start(vbox1) - self.pack_start(vbox2) - - vbox1.show() - vbox2.show() - - def get_filename(self): - return self.select_file_widget.GetFile() - - def get_printer(self): - return self.printer_chooser.get_printer() - - def get_page_per_page(self): - return self.page_per_page.get_page_per_page() - - def get_copies(self): - return self.copies.get_copies() - - - -class PageRangeBlock(gtk.VBox): - - def __init__(self): - - gtk.VBox.__init__(self) - - self.check_button = gtk.CheckButton("Stampa solo una parte del documento", - True) - - self.check_button.set_active(False) - - self.check_button.connect('clicked', self.check_button_callback) - - self.pack_start(self.check_button) - self.check_button.show() - - self.hbox = gtk.HBox() - - self.range_field = gtk.Entry() - self.range_field.set_tooltip_text("Indicare pagine e/o intervalli separati da virgole, ad esempio \"1,3-10,12,13,15-17\"") - - label = LeftAlignedLabel("Range di pagine", 20) - self.hbox.pack_start(label) - self.hbox.pack_start(self.range_field) - label.show() - - self.pack_start(self.hbox) - - self.range_field.show() - - self.hbox.show() - self.hbox.set_spacing( 5 ) - self.hbox.set_sensitive(False) - - def check_button_callback(self, obj): - - if self.check_button.get_active() == False: - self.hbox.set_sensitive(False) - else: - self.hbox.set_sensitive(True) - - def get_page_range(self): - - if self.check_button.get_active() == False: - return None - - return self.range_field.get_text() - - -class CopiesField(gtk.SpinButton): - - def __init__(self): - - gtk.SpinButton.__init__(self) - self.set_digits(0) - self.set_increments(1,10) - self.set_range(0,999) - self.set_value(1) - - def get_copies(self): - return str(self.get_value()) - - - -class OrientationSelect(gtk.HBox): - - def __init__(self): - - gtk.HBox.__init__(self) - - # Un etichetta per capire a cosa servono questi radio button - label = LeftAlignedLabel("Orientamento", 20) - self.pack_start( label ) - label.show() - - # I radio button :) - self.landscape = gtk.RadioButton(None, - "Orizzontale", - True) - - self.portrait = gtk.RadioButton(self.landscape, - "Verticale", - True) - self.pack_start(self.landscape) - self.pack_start(self.portrait) - - self.landscape.show () - self.portrait.show () - - self.portrait.set_active(True) - - def get_orientation(self): - - if self.landscape.get_active(): - return "landscape" - - if self.portrait.get_active(): - return "" - - ## Questo non dovrebbe succedere - return None - -class SidesSelect(gtk.VBox): - - def __init__(self): - - gtk.VBox.__init__(self) - - self.one_sided = gtk.RadioButton(None, - "Solo fronte", - True) - self.two_sided_short_edge = gtk.RadioButton(self.one_sided, - "Fronte retro sul lato corto", - True) - self.two_sided_long_edge = gtk.RadioButton(self.one_sided, - "Fronte retro sul lato lungo", - True) - - for widget in (self.one_sided, - self.two_sided_short_edge, - self.two_sided_long_edge) : - a = PaddingLeftWidget(widget, 20) - self.pack_start(a) - a.show() - - self.two_sided_long_edge.set_active(True) - - def get_sides_select(self): - - if( self.one_sided.get_active() ): - return "one-sided" - - if( self.two_sided_short_edge.get_active() ): - return "two-sided-short-edge" - - if( self.two_sided_long_edge.get_active() ): - return "two-sided-long-edge" - - - - - - - diff --git a/debian/drprint/usr/local/lib/python2.6/dist-packages/DrPrintGui/MainWin.py b/debian/drprint/usr/local/lib/python2.6/dist-packages/DrPrintGui/MainWin.py deleted file mode 100644 index 75afa14..0000000 --- a/debian/drprint/usr/local/lib/python2.6/dist-packages/DrPrintGui/MainWin.py +++ /dev/null @@ -1,193 +0,0 @@ -## This library is part of DrPrintGui -# -*- coding: utf-8 -*- -## This file provide the MainWin object, -## that is the main window of the DrPrint -## application - - -__author__ = 'Leonardo Robol <leo@robol.it>' - -import gtk, pygtk -import os -import sys - -from Input import AuthBlock, PrinterSettingsBlock, PrintButton, LeftAlignedLabel, PageRangeBlock, OrientationSelect, SidesSelect -from Dialogs import ErrorDialog, MessageDialog - -class MainWin(gtk.Window): - """MainWin object for DrPrint""" - - def __init__(self, backend=None): - - self.backend = backend - - gtk.Window.__init__(self, gtk.WINDOW_TOPLEVEL) - - self.set_title = "DrPrint 0.2" - self.set_border_width(10) - - self.default_spacing = 5 - - self.connect('destroy' , gtk.main_quit) - - self.build() - - self.connect_all() - - def build(self): - """This function builds up the interface using pieces - from DrPrintGui""" - - # The main Layout VBox - layout_box = gtk.VBox() - layout_box.set_spacing( self.default_spacing ) - - # Inseriamo l'immagine di Dr Print - image_file = "/usr/share/drprint/drprint_gui.png" - try: - os.stat(image_file) - except OSError: - image_file = "/usr/local/share/drprint/drprint_gui.png" - try: - os.stat(image_file) - except OSError: - image_file = "drprint_gui.png" - drprint_img = gtk.image_new_from_file(image_file) - - # Qualche istruzinoe preliminare - label = gtk.Label() - label.set_markup("<b>Come usare questo programma:</b>\n\ -<b>1)</b> Inserire nome utente e password \n<b>2)</b> Scegliere il file da stampare e la\ - stampante \n<b>3)</b> Premere il tasto stampa\n\ -<b>Attenzione: </b>Questo programma stampa solo file che possono\n\ -essere compresi dalle stampanti, ovvero <b>PS</b> e <b>PDF</b>") - - hbox = gtk.HBox(); - hbox.show() - hbox.set_spacing(self.default_spacing) - - hbox.pack_start(drprint_img) - drprint_img.show() - - hbox.pack_start( label ) - label.show() - - layout_box.pack_start(hbox, 20) - - label = LeftAlignedLabel("<b>Autenticazione (sui computer dell'Aula 4)</b>") - layout_box.pack_start( label ) - label.show() - - self.auth_block = AuthBlock(self.default_spacing, 10) - layout_box.pack_start ( self.auth_block ) - self.auth_block.show() - - # The PDF file loading and print settings - label = LeftAlignedLabel("<b>Configurazione stampante</b>") - layout_box.pack_start(label) - label.show() - - self.printer_settings_block = PrinterSettingsBlock(self.default_spacing) - layout_box.pack_start(self.printer_settings_block) - self.printer_settings_block.show() - - self.orientation_select = OrientationSelect() - layout_box.pack_start(self.orientation_select) - self.orientation_select.show() - - label = LeftAlignedLabel("<b>Configurazione Avanzata</b>") - layout_box.pack_start(label) - label.show() - - self.page_range_block = PageRangeBlock() - layout_box.pack_start(self.page_range_block) - self.page_range_block.show() - - label = LeftAlignedLabel( "<b>Fronte retro</b>" ) - layout_box.pack_start(label) - label.show() - - self.sides_select = SidesSelect() - layout_box.pack_start(self.sides_select) - self.sides_select.show() - - self.print_button = PrintButton() - layout_box.pack_start(self.print_button) - self.print_button.show() - - - self.add (layout_box) - layout_box.show() - - - def connect_all(self): - self.print_button.connect('clicked', self.print_button_clicked_callback) - self.backend.connect('auth_failed', self.auth_failed_callback) - self.backend.connect('io_error', self.io_error_callback) - - def print_button_clicked_callback(self, widget): - if not self.backend == None: - printer = self.printer_settings_block.get_printer() - username = self.auth_block.get_username() - password = self.auth_block.get_password() - filename = self.printer_settings_block.get_filename() - page_per_page = self.printer_settings_block.get_page_per_page() - page_range = self.page_range_block.get_page_range() - copies = self.printer_settings_block.get_copies() - orientation = self.orientation_select.get_orientation() - sides = self.sides_select.get_sides_select() - - if not (filename.lower().endswith("pdf") | - filename.lower().endswith("ps")): - dialog = MessageDialog("Attenzione!", - "Il file che hai scelto di stampare\n\ -non sembra essere un file <b>PS</b>,\n\ -un file <b>PDF</b> o un file di testo, e quindi \n\ -probabilmente il programma non stamperà\n\ -quello che vuoi.\n\ -Se vuoi continuare premi OK") - resp = dialog.run() - dialog.destroy() - - - if resp == gtk.RESPONSE_OK: - self.backend.send_print(printer = printer, - username = username, - password = password, - filename = filename, - page_per_page = page_per_page, - page_range = page_range, - copies = copies, - orientation=orientation, - sides = sides) - else: - self.debug( "Sembra che non ci sia un backend attaccato\ - a questa interfaccia, quindi non faccio nulla") - - def auth_failed_callback(self, obj): - """Questa funzione gestisce l'eventualità che utente - e password siano errati""" - self.debug("Autenticazione fallita") - dialog = ErrorDialog("Autenticazione Fallita", - "Lo username e la password forniti non sono\n\ -corretti. L'autenticazione su ssh.dm.unipi.it\nnon è andata a buon fine.") - dialog.run() - dialog.destroy() - - def io_error_callback(self, obj): - - self.debug("Errore di I/O") - dialog = ErrorDialog("Errore di I/O", - "C'è stato un errore nella lettura o nella\n \ -trasmissione del file.") - - dialog.run() - dialog.destroy() - - - - def debug(self, text): - print text - - - diff --git a/debian/drprint/usr/local/lib/python2.6/dist-packages/DrPrintGui/__init__.py b/debian/drprint/usr/local/lib/python2.6/dist-packages/DrPrintGui/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/debian/drprint/usr/local/share/applications/drprint.desktop b/debian/drprint/usr/local/share/applications/drprint.desktop deleted file mode 100644 index ad4c7d6..0000000 --- a/debian/drprint/usr/local/share/applications/drprint.desktop +++ /dev/null @@ -1,11 +0,0 @@ -[Desktop Entry] -Encoding=UTF-8 -Name=DrPrint -Comment[it]=Stampa sulle stampanti della rete dm.unipi.it -Comment[en]=Print using dm.unipi.it network printers -Exec=drprint -Terminal=false -Type=Application -StartupNotify=false -Categories=GNOME;Utility -Icon=drprint diff --git a/debian/drprint/usr/local/share/drprint/drprint_gui.png b/debian/drprint/usr/local/share/drprint/drprint_gui.png deleted file mode 100644 index 308bead..0000000 Binary files a/debian/drprint/usr/local/share/drprint/drprint_gui.png and /dev/null differ diff --git a/debian/drprint/usr/local/share/pixmaps/drprint.png b/debian/drprint/usr/local/share/pixmaps/drprint.png deleted file mode 100644 index e30589e..0000000 Binary files a/debian/drprint/usr/local/share/pixmaps/drprint.png and /dev/null differ diff --git a/debian/drprint/usr/share/doc/drprint/README.Debian b/debian/drprint/usr/share/doc/drprint/README.Debian deleted file mode 100644 index 62c030b..0000000 --- a/debian/drprint/usr/share/doc/drprint/README.Debian +++ /dev/null @@ -1,6 +0,0 @@ -drprint for Debian ------------------- - -<possible notes regarding this package - if none, delete this file> - - -- Leonardo Robol <leo@robol.it> Thu, 15 Oct 2009 10:39:41 +0200 diff --git a/debian/drprint/usr/share/doc/drprint/changelog.Debian.gz b/debian/drprint/usr/share/doc/drprint/changelog.Debian.gz deleted file mode 100644 index d608639..0000000 Binary files a/debian/drprint/usr/share/doc/drprint/changelog.Debian.gz and /dev/null differ diff --git a/debian/drprint/usr/share/doc/drprint/copyright b/debian/drprint/usr/share/doc/drprint/copyright deleted file mode 100644 index c48f1c2..0000000 --- a/debian/drprint/usr/share/doc/drprint/copyright +++ /dev/null @@ -1,44 +0,0 @@ -This package was debianized by: - - Leonardo Robol <leo@robol.it> on Thu, 15 Oct 2009 10:39:41 +0200 - -It was downloaded from: - - <url://example.com> - -Upstream Author(s): - - <put author's name and email here> - <likewise for another author> - -Copyright: - - <Copyright (C) YYYY Firstname Lastname> - <likewise for another author> - -License: - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This package is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see <http://www.gnu.org/licenses/>. - -On Debian systems, the complete text of the GNU General -Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'. - -The Debian packaging is: - - Copyright (C) 2009 Leonardo Robol <leo@robol.it> - -and is licensed under the GPL version 3, see above. - -# Please also look if there are files or directories which have a -# different copyright/license attached and list them here. diff --git a/debian/files b/debian/files deleted file mode 100644 index e6f3f81..0000000 --- a/debian/files +++ /dev/null @@ -1,6 +0,0 @@ -drprint_0.6-1_all.deb unknown extra -drprint_0.6-2_all.deb unknown extra -drprint_0.6-2_all.deb unknown extra -drprint_0.6-2_all.deb unknown extra -drprint_0.6-3_all.deb unknown extra -drprint_0.7-1_all.deb unknown extra