Changeset 3075

Show
Ignore:
Timestamp:
11/28/06 22:28:36 (18 years ago)
Author:
jerome
Message:

Added the --noremote command line option to pknotify.

Location:
pykota/trunk
Files:
18 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pknotify

    r2829 r3075  
    2727import sys 
    2828import socket 
     29import errno 
    2930import signal 
    3031import xmlrpclib 
     
    7879                             The default value of N is 1, meaning the job 
    7980                             is denied after the first unsuccessful try. 
     81                              
     82  -N | --noremote action     If it's impossible to connect to the remote 
     83                             PyKotIcon machine, do this action instead. 
     84                             Allowed actions are 'CONTINUE' and 'CANCEL',  
     85                             which will respectively allow the processing 
     86                             of the print job to continue, or the job to 
     87                             be cancelled. The default value is CANCEL. 
    8088                              
    8189  -n | --notify              Tells pknotify to send an informational message 
     
    121129examples :                     
    122130 
    123   pknotify -d client:7654 --confirm "This job costs :\n10 credits !" 
    124    
    125   Would display the cost of a print job and asks for confirmation. 
     131  pknotify -d client:7654 --noremote CONTINUE --confirm "This job costs 10 credits" 
     132   
     133  Would display the cost of the print job and asks for confirmation. 
     134  If the end user doesn't have PyKotIcon running and accepting connections 
     135  from the print server, PyKota will consider that the end user accepted 
     136  to print this job. 
    126137   
    127138  pknotify --destination $PYKOTAJOBORIGINATINGHOSTNAME:7654 \\ 
     
    279290                server.quitApplication() 
    280291        except (socket.error, socket.gaierror), msg : 
     292            print options["noremote"] 
     293            try : 
     294                errnum = msg.args[0] 
     295            except (AttributeError, IndexError) : 
     296                pass 
     297            else :     
     298                if errnum == errno.ECONNREFUSED : 
     299                    self.printInfo(_("Are you sure that PyKotIcon is running and accepting incoming connections on %s:%s ?") % (self.destination, self.port), "error") 
    281300            raise PyKotaCommandLineError, "%s : %s" % (_("Connection error"), str(msg)) 
    282301        except TimeoutError, msg :     
     
    292311        defaults = { \ 
    293312                     "timeout" : 0, 
     313                     "noremote" : "CANCEL", 
    294314                   } 
    295         short_options = "vhd:acnqCD:t:" 
     315        short_options = "vhd:acnqCD:t:N:" 
    296316        long_options = ["help", "version", "destination=", "denyafter=", \ 
    297317                        "timeout=", "ask", "checkauth", "confirm", "notify", \ 
    298                         "quit" ] 
     318                        "quit", "noremote=" ] 
    299319         
    300320        # Initializes the command line tool 
     
    316336        options["denyafter"] = options["D"] or options["denyafter"] 
    317337        options["timeout"] = options["t"] or options["timeout"] or defaults["timeout"] 
     338        options["noremote"] = (options["N"] or options["noremote"] or defaults["noremote"]).upper() 
    318339         
    319340        if options["help"] : 
     
    329350             or not (options["quit"] or options["ask"] or options["confirm"] or options["notify"]) : 
    330351            raise PyKotaCommandLineError, _("some options are mandatory, see help.") 
     352        elif options["noremote"] not in ("CANCEL", "CONTINUE") : 
     353            raise PyKotaCommandLineError, _("incorrect value for the --noremote command line switch, see help.") 
    331354        elif (not args) and (not options["quit"]) : 
    332355            raise PyKotaCommandLineError, _("some options require arguments, see help.") 
  • pykota/trunk/NEWS

    r3073 r3075  
    2424    - 1.25alpha17 (2006-11-27) : 
    2525     
     26        - pknotify now accepts the --noremote command line option to 
     27          decide what has to be done when there's no PyKotIcon running 
     28          or accepting connections from the print server on the client host. 
     29           
    2630        - pkprinters now only modifies CUPS' printers.conf when the 
    2731          -C | --cups command line switch is used. 
  • pykota/trunk/po/de/pykota.po

    r3073 r3075  
    10891089"                             is denied after the first unsuccessful try.\n" 
    10901090"                             \n" 
     1091"  -N | --noremote action     If it's impossible to connect to the remote\n" 
     1092"                             PyKotIcon machine, do this action instead.\n" 
     1093"                             Allowed actions are 'CONTINUE' and 'CANCEL', \n" 
     1094"                             which will respectively allow the processing\n" 
     1095"                             of the print job to continue, or the job to\n" 
     1096"                             be cancelled. The default value is CANCEL.\n" 
     1097"                             \n" 
    10911098"  -n | --notify              Tells pknotify to send an informational " 
    10921099"message\n" 
     
    11371144"examples :                    \n" 
    11381145"\n" 
    1139 "  pknotify -d client:7654 --confirm \"This job costs :\n" 
    1140 "10 credits !\"\n" 
    1141 "  \n" 
    1142 "  Would display the cost of a print job and asks for confirmation.\n" 
     1146"  pknotify -d client:7654 --noremote CONTINUE --confirm \"This job costs 10 " 
     1147"credits\"\n" 
     1148"  \n" 
     1149"  Would display the cost of the print job and asks for confirmation.\n" 
     1150"  If the end user doesn't have PyKotIcon running and accepting connections\n" 
     1151"  from the print server, PyKota will consider that the end user accepted\n" 
     1152"  to print this job.\n" 
    11431153"  \n" 
    11441154"  pknotify --destination $PYKOTAJOBORIGINATINGHOSTNAME:7654 \\\n" 
  • pykota/trunk/po/el_GR/pykota.po

    r3073 r3075  
    10901090"                             is denied after the first unsuccessful try.\n" 
    10911091"                             \n" 
     1092"  -N | --noremote action     If it's impossible to connect to the remote\n" 
     1093"                             PyKotIcon machine, do this action instead.\n" 
     1094"                             Allowed actions are 'CONTINUE' and 'CANCEL', \n" 
     1095"                             which will respectively allow the processing\n" 
     1096"                             of the print job to continue, or the job to\n" 
     1097"                             be cancelled. The default value is CANCEL.\n" 
     1098"                             \n" 
    10921099"  -n | --notify              Tells pknotify to send an informational " 
    10931100"message\n" 
     
    11381145"examples :                    \n" 
    11391146"\n" 
    1140 "  pknotify -d client:7654 --confirm \"This job costs :\n" 
    1141 "10 credits !\"\n" 
    1142 "  \n" 
    1143 "  Would display the cost of a print job and asks for confirmation.\n" 
     1147"  pknotify -d client:7654 --noremote CONTINUE --confirm \"This job costs 10 " 
     1148"credits\"\n" 
     1149"  \n" 
     1150"  Would display the cost of the print job and asks for confirmation.\n" 
     1151"  If the end user doesn't have PyKotIcon running and accepting connections\n" 
     1152"  from the print server, PyKota will consider that the end user accepted\n" 
     1153"  to print this job.\n" 
    11441154"  \n" 
    11451155"  pknotify --destination $PYKOTAJOBORIGINATINGHOSTNAME:7654 \\\n" 
  • pykota/trunk/po/es/pykota.po

    r3073 r3075  
    11061106"                             is denied after the first unsuccessful try.\n" 
    11071107"                             \n" 
     1108"  -N | --noremote action     If it's impossible to connect to the remote\n" 
     1109"                             PyKotIcon machine, do this action instead.\n" 
     1110"                             Allowed actions are 'CONTINUE' and 'CANCEL', \n" 
     1111"                             which will respectively allow the processing\n" 
     1112"                             of the print job to continue, or the job to\n" 
     1113"                             be cancelled. The default value is CANCEL.\n" 
     1114"                             \n" 
    11081115"  -n | --notify              Tells pknotify to send an informational " 
    11091116"message\n" 
     
    11541161"examples :                    \n" 
    11551162"\n" 
    1156 "  pknotify -d client:7654 --confirm \"This job costs :\n" 
    1157 "10 credits !\"\n" 
    1158 "  \n" 
    1159 "  Would display the cost of a print job and asks for confirmation.\n" 
     1163"  pknotify -d client:7654 --noremote CONTINUE --confirm \"This job costs 10 " 
     1164"credits\"\n" 
     1165"  \n" 
     1166"  Would display the cost of the print job and asks for confirmation.\n" 
     1167"  If the end user doesn't have PyKotIcon running and accepting connections\n" 
     1168"  from the print server, PyKota will consider that the end user accepted\n" 
     1169"  to print this job.\n" 
    11601170"  \n" 
    11611171"  pknotify --destination $PYKOTAJOBORIGINATINGHOSTNAME:7654 \\\n" 
  • pykota/trunk/po/fr/pykota.po

    r3073 r3075  
    16161616"                             is denied after the first unsuccessful try.\n" 
    16171617"                             \n" 
     1618"  -N | --noremote action     If it's impossible to connect to the remote\n" 
     1619"                             PyKotIcon machine, do this action instead.\n" 
     1620"                             Allowed actions are 'CONTINUE' and 'CANCEL', \n" 
     1621"                             which will respectively allow the processing\n" 
     1622"                             of the print job to continue, or the job to\n" 
     1623"                             be cancelled. The default value is CANCEL.\n" 
     1624"                             \n" 
    16181625"  -n | --notify              Tells pknotify to send an informational " 
    16191626"message\n" 
     
    16641671"examples :                    \n" 
    16651672"\n" 
    1666 "  pknotify -d client:7654 --confirm \"This job costs :\n" 
    1667 "10 credits !\"\n" 
    1668 "  \n" 
    1669 "  Would display the cost of a print job and asks for confirmation.\n" 
     1673"  pknotify -d client:7654 --noremote CONTINUE --confirm \"This job costs 10 " 
     1674"credits\"\n" 
     1675"  \n" 
     1676"  Would display the cost of the print job and asks for confirmation.\n" 
     1677"  If the end user doesn't have PyKotIcon running and accepting connections\n" 
     1678"  from the print server, PyKota will consider that the end user accepted\n" 
     1679"  to print this job.\n" 
    16701680"  \n" 
    16711681"  pknotify --destination $PYKOTAJOBORIGINATINGHOSTNAME:7654 \\\n" 
     
    17321742"                             tentative infructueuse.\n" 
    17331743"\n" 
     1744"  -N | --noremote action     S'il est impossible de se connecter �a " 
     1745"machine\n" 
     1746"                             PyKotIcon distante, fait cette action �a " 
     1747"place.\n" 
     1748"                             Les actions autoris� sont 'CONTINUE' et " 
     1749"'CANCEL', \n" 
     1750"                             qui vont respectivement autoriser le traitement " 
     1751"du\n" 
     1752"                             travail d'impression �ontinuer, ou bien le " 
     1753"travail\n" 
     1754"                             sera annul�La valeur par d�ut est CANCEL.\n" 
     1755"                             \n" 
    17341756"  -n | --notify              Indique �knotify d'envoyer un message\n" 
    17351757"                             d'information �'utilisateur final.\n" 
     
    17851807"exemples :                    \n" 
    17861808"\n" 
    1787 "  pknotify -d client:7654 --confirm \"Ce job co�\n" 
    1788 "10 cr�ts !\"\n" 
    1789 "  \n" 
    1790 "  Affichera le co� travail et demandera une confirmation.\n" 
     1809"  pknotify -d client:7654 --noremote CONTINUE --confirm \"Ce travail co� 
     1810"10 cr�ts\"\n" 
     1811"  \n" 
     1812"  Ceci afficherait le co� travail d'impression et demanderait une " 
     1813"confirmation.\n" 
     1814"  Si l'utilisateur final n'a pas PyKotIcon actif et acceptant les connexions " 
     1815"entrantes\n" 
     1816"  depuis le serveur d'impression, PyKota consid�ra que l'utilisateur a " 
     1817"accept�" 
     1818"  d'imprimer ce travail.\n" 
    17911819"  \n" 
    17921820"  pknotify --destination $PYKOTAJOBORIGINATINGHOSTNAME:7654 \\\n" 
  • pykota/trunk/po/it/pykota.po

    r3073 r3075  
    10921092"                             is denied after the first unsuccessful try.\n" 
    10931093"                             \n" 
     1094"  -N | --noremote action     If it's impossible to connect to the remote\n" 
     1095"                             PyKotIcon machine, do this action instead.\n" 
     1096"                             Allowed actions are 'CONTINUE' and 'CANCEL', \n" 
     1097"                             which will respectively allow the processing\n" 
     1098"                             of the print job to continue, or the job to\n" 
     1099"                             be cancelled. The default value is CANCEL.\n" 
     1100"                             \n" 
    10941101"  -n | --notify              Tells pknotify to send an informational " 
    10951102"message\n" 
     
    11401147"examples :                    \n" 
    11411148"\n" 
    1142 "  pknotify -d client:7654 --confirm \"This job costs :\n" 
    1143 "10 credits !\"\n" 
    1144 "  \n" 
    1145 "  Would display the cost of a print job and asks for confirmation.\n" 
     1149"  pknotify -d client:7654 --noremote CONTINUE --confirm \"This job costs 10 " 
     1150"credits\"\n" 
     1151"  \n" 
     1152"  Would display the cost of the print job and asks for confirmation.\n" 
     1153"  If the end user doesn't have PyKotIcon running and accepting connections\n" 
     1154"  from the print server, PyKota will consider that the end user accepted\n" 
     1155"  to print this job.\n" 
    11461156"  \n" 
    11471157"  pknotify --destination $PYKOTAJOBORIGINATINGHOSTNAME:7654 \\\n" 
  • pykota/trunk/po/nb_NO/pykota.po

    r3073 r3075  
    10991099"                             is denied after the first unsuccessful try.\n" 
    11001100"                             \n" 
     1101"  -N | --noremote action     If it's impossible to connect to the remote\n" 
     1102"                             PyKotIcon machine, do this action instead.\n" 
     1103"                             Allowed actions are 'CONTINUE' and 'CANCEL', \n" 
     1104"                             which will respectively allow the processing\n" 
     1105"                             of the print job to continue, or the job to\n" 
     1106"                             be cancelled. The default value is CANCEL.\n" 
     1107"                             \n" 
    11011108"  -n | --notify              Tells pknotify to send an informational " 
    11021109"message\n" 
     
    11471154"examples :                    \n" 
    11481155"\n" 
    1149 "  pknotify -d client:7654 --confirm \"This job costs :\n" 
    1150 "10 credits !\"\n" 
    1151 "  \n" 
    1152 "  Would display the cost of a print job and asks for confirmation.\n" 
     1156"  pknotify -d client:7654 --noremote CONTINUE --confirm \"This job costs 10 " 
     1157"credits\"\n" 
     1158"  \n" 
     1159"  Would display the cost of the print job and asks for confirmation.\n" 
     1160"  If the end user doesn't have PyKotIcon running and accepting connections\n" 
     1161"  from the print server, PyKota will consider that the end user accepted\n" 
     1162"  to print this job.\n" 
    11531163"  \n" 
    11541164"  pknotify --destination $PYKOTAJOBORIGINATINGHOSTNAME:7654 \\\n" 
  • pykota/trunk/po/pl/pykota.po

    r3073 r3075  
    14961496"                             is denied after the first unsuccessful try.\n" 
    14971497"                             \n" 
     1498"  -N | --noremote action     If it's impossible to connect to the remote\n" 
     1499"                             PyKotIcon machine, do this action instead.\n" 
     1500"                             Allowed actions are 'CONTINUE' and 'CANCEL', \n" 
     1501"                             which will respectively allow the processing\n" 
     1502"                             of the print job to continue, or the job to\n" 
     1503"                             be cancelled. The default value is CANCEL.\n" 
     1504"                             \n" 
    14981505"  -n | --notify              Tells pknotify to send an informational " 
    14991506"message\n" 
     
    15441551"examples :                    \n" 
    15451552"\n" 
    1546 "  pknotify -d client:7654 --confirm \"This job costs :\n" 
    1547 "10 credits !\"\n" 
    1548 "  \n" 
    1549 "  Would display the cost of a print job and asks for confirmation.\n" 
     1553"  pknotify -d client:7654 --noremote CONTINUE --confirm \"This job costs 10 " 
     1554"credits\"\n" 
     1555"  \n" 
     1556"  Would display the cost of the print job and asks for confirmation.\n" 
     1557"  If the end user doesn't have PyKotIcon running and accepting connections\n" 
     1558"  from the print server, PyKota will consider that the end user accepted\n" 
     1559"  to print this job.\n" 
    15501560"  \n" 
    15511561"  pknotify --destination $PYKOTAJOBORIGINATINGHOSTNAME:7654 \\\n" 
  • pykota/trunk/po/pt_BR/pykota.po

    r3073 r3075  
    10871087"                             is denied after the first unsuccessful try.\n" 
    10881088"                             \n" 
     1089"  -N | --noremote action     If it's impossible to connect to the remote\n" 
     1090"                             PyKotIcon machine, do this action instead.\n" 
     1091"                             Allowed actions are 'CONTINUE' and 'CANCEL', \n" 
     1092"                             which will respectively allow the processing\n" 
     1093"                             of the print job to continue, or the job to\n" 
     1094"                             be cancelled. The default value is CANCEL.\n" 
     1095"                             \n" 
    10891096"  -n | --notify              Tells pknotify to send an informational " 
    10901097"message\n" 
     
    11351142"examples :                    \n" 
    11361143"\n" 
    1137 "  pknotify -d client:7654 --confirm \"This job costs :\n" 
    1138 "10 credits !\"\n" 
    1139 "  \n" 
    1140 "  Would display the cost of a print job and asks for confirmation.\n" 
     1144"  pknotify -d client:7654 --noremote CONTINUE --confirm \"This job costs 10 " 
     1145"credits\"\n" 
     1146"  \n" 
     1147"  Would display the cost of the print job and asks for confirmation.\n" 
     1148"  If the end user doesn't have PyKotIcon running and accepting connections\n" 
     1149"  from the print server, PyKota will consider that the end user accepted\n" 
     1150"  to print this job.\n" 
    11411151"  \n" 
    11421152"  pknotify --destination $PYKOTAJOBORIGINATINGHOSTNAME:7654 \\\n" 
  • pykota/trunk/po/pt/pykota.po

    r3073 r3075  
    10901090"                             is denied after the first unsuccessful try.\n" 
    10911091"                             \n" 
     1092"  -N | --noremote action     If it's impossible to connect to the remote\n" 
     1093"                             PyKotIcon machine, do this action instead.\n" 
     1094"                             Allowed actions are 'CONTINUE' and 'CANCEL', \n" 
     1095"                             which will respectively allow the processing\n" 
     1096"                             of the print job to continue, or the job to\n" 
     1097"                             be cancelled. The default value is CANCEL.\n" 
     1098"                             \n" 
    10921099"  -n | --notify              Tells pknotify to send an informational " 
    10931100"message\n" 
     
    11381145"examples :                    \n" 
    11391146"\n" 
    1140 "  pknotify -d client:7654 --confirm \"This job costs :\n" 
    1141 "10 credits !\"\n" 
    1142 "  \n" 
    1143 "  Would display the cost of a print job and asks for confirmation.\n" 
     1147"  pknotify -d client:7654 --noremote CONTINUE --confirm \"This job costs 10 " 
     1148"credits\"\n" 
     1149"  \n" 
     1150"  Would display the cost of the print job and asks for confirmation.\n" 
     1151"  If the end user doesn't have PyKotIcon running and accepting connections\n" 
     1152"  from the print server, PyKota will consider that the end user accepted\n" 
     1153"  to print this job.\n" 
    11441154"  \n" 
    11451155"  pknotify --destination $PYKOTAJOBORIGINATINGHOSTNAME:7654 \\\n" 
  • pykota/trunk/po/pykota.pot

    r3073 r3075  
    10691069"                             is denied after the first unsuccessful try.\n" 
    10701070"                             \n" 
     1071"  -N | --noremote action     If it's impossible to connect to the remote\n" 
     1072"                             PyKotIcon machine, do this action instead.\n" 
     1073"                             Allowed actions are 'CONTINUE' and 'CANCEL', \n" 
     1074"                             which will respectively allow the processing\n" 
     1075"                             of the print job to continue, or the job to\n" 
     1076"                             be cancelled. The default value is CANCEL.\n" 
     1077"                             \n" 
    10711078"  -n | --notify              Tells pknotify to send an informational " 
    10721079"message\n" 
     
    11171124"examples :                    \n" 
    11181125"\n" 
    1119 "  pknotify -d client:7654 --confirm \"This job costs :\n" 
    1120 "10 credits !\"\n" 
    1121 "  \n" 
    1122 "  Would display the cost of a print job and asks for confirmation.\n" 
     1126"  pknotify -d client:7654 --noremote CONTINUE --confirm \"This job costs 10 credits\"\n" 
     1127"  \n" 
     1128"  Would display the cost of the print job and asks for confirmation.\n" 
     1129"  If the end user doesn't have PyKotIcon running and accepting connections\n" 
     1130"  from the print server, PyKota will consider that the end user accepted\n" 
     1131"  to print this job.\n" 
    11231132"  \n" 
    11241133"  pknotify --destination $PYKOTAJOBORIGINATINGHOSTNAME:7654 \\\n" 
  • pykota/trunk/po/sv_SE/pykota.po

    r3073 r3075  
    11051105"                             is denied after the first unsuccessful try.\n" 
    11061106"                             \n" 
     1107"  -N | --noremote action     If it's impossible to connect to the remote\n" 
     1108"                             PyKotIcon machine, do this action instead.\n" 
     1109"                             Allowed actions are 'CONTINUE' and 'CANCEL', \n" 
     1110"                             which will respectively allow the processing\n" 
     1111"                             of the print job to continue, or the job to\n" 
     1112"                             be cancelled. The default value is CANCEL.\n" 
     1113"                             \n" 
    11071114"  -n | --notify              Tells pknotify to send an informational " 
    11081115"message\n" 
     
    11531160"examples :                    \n" 
    11541161"\n" 
    1155 "  pknotify -d client:7654 --confirm \"This job costs :\n" 
    1156 "10 credits !\"\n" 
    1157 "  \n" 
    1158 "  Would display the cost of a print job and asks for confirmation.\n" 
     1162"  pknotify -d client:7654 --noremote CONTINUE --confirm \"This job costs 10 " 
     1163"credits\"\n" 
     1164"  \n" 
     1165"  Would display the cost of the print job and asks for confirmation.\n" 
     1166"  If the end user doesn't have PyKotIcon running and accepting connections\n" 
     1167"  from the print server, PyKota will consider that the end user accepted\n" 
     1168"  to print this job.\n" 
    11591169"  \n" 
    11601170"  pknotify --destination $PYKOTAJOBORIGINATINGHOSTNAME:7654 \\\n" 
  • pykota/trunk/po/th/pykota.po

    r3073 r3075  
    10831083"                             is denied after the first unsuccessful try.\n" 
    10841084"                             \n" 
     1085"  -N | --noremote action     If it's impossible to connect to the remote\n" 
     1086"                             PyKotIcon machine, do this action instead.\n" 
     1087"                             Allowed actions are 'CONTINUE' and 'CANCEL', \n" 
     1088"                             which will respectively allow the processing\n" 
     1089"                             of the print job to continue, or the job to\n" 
     1090"                             be cancelled. The default value is CANCEL.\n" 
     1091"                             \n" 
    10851092"  -n | --notify              Tells pknotify to send an informational " 
    10861093"message\n" 
     
    11311138"examples :                    \n" 
    11321139"\n" 
    1133 "  pknotify -d client:7654 --confirm \"This job costs :\n" 
    1134 "10 credits !\"\n" 
    1135 "  \n" 
    1136 "  Would display the cost of a print job and asks for confirmation.\n" 
     1140"  pknotify -d client:7654 --noremote CONTINUE --confirm \"This job costs 10 " 
     1141"credits\"\n" 
     1142"  \n" 
     1143"  Would display the cost of the print job and asks for confirmation.\n" 
     1144"  If the end user doesn't have PyKotIcon running and accepting connections\n" 
     1145"  from the print server, PyKota will consider that the end user accepted\n" 
     1146"  to print this job.\n" 
    11371147"  \n" 
    11381148"  pknotify --destination $PYKOTAJOBORIGINATINGHOSTNAME:7654 \\\n" 
  • pykota/trunk/po/tr/pykota.po

    r3073 r3075  
    10951095"                             is denied after the first unsuccessful try.\n" 
    10961096"                             \n" 
     1097"  -N | --noremote action     If it's impossible to connect to the remote\n" 
     1098"                             PyKotIcon machine, do this action instead.\n" 
     1099"                             Allowed actions are 'CONTINUE' and 'CANCEL', \n" 
     1100"                             which will respectively allow the processing\n" 
     1101"                             of the print job to continue, or the job to\n" 
     1102"                             be cancelled. The default value is CANCEL.\n" 
     1103"                             \n" 
    10971104"  -n | --notify              Tells pknotify to send an informational " 
    10981105"message\n" 
     
    11431150"examples :                    \n" 
    11441151"\n" 
    1145 "  pknotify -d client:7654 --confirm \"This job costs :\n" 
    1146 "10 credits !\"\n" 
    1147 "  \n" 
    1148 "  Would display the cost of a print job and asks for confirmation.\n" 
     1152"  pknotify -d client:7654 --noremote CONTINUE --confirm \"This job costs 10 " 
     1153"credits\"\n" 
     1154"  \n" 
     1155"  Would display the cost of the print job and asks for confirmation.\n" 
     1156"  If the end user doesn't have PyKotIcon running and accepting connections\n" 
     1157"  from the print server, PyKota will consider that the end user accepted\n" 
     1158"  to print this job.\n" 
    11491159"  \n" 
    11501160"  pknotify --destination $PYKOTAJOBORIGINATINGHOSTNAME:7654 \\\n" 
  • pykota/trunk/po/zh_TW/pykota.po

    r3073 r3075  
    10751075"                             is denied after the first unsuccessful try.\n" 
    10761076"                             \n" 
     1077"  -N | --noremote action     If it's impossible to connect to the remote\n" 
     1078"                             PyKotIcon machine, do this action instead.\n" 
     1079"                             Allowed actions are 'CONTINUE' and 'CANCEL', \n" 
     1080"                             which will respectively allow the processing\n" 
     1081"                             of the print job to continue, or the job to\n" 
     1082"                             be cancelled. The default value is CANCEL.\n" 
     1083"                             \n" 
    10771084"  -n | --notify              Tells pknotify to send an informational " 
    10781085"message\n" 
     
    11231130"examples :                    \n" 
    11241131"\n" 
    1125 "  pknotify -d client:7654 --confirm \"This job costs :\n" 
    1126 "10 credits !\"\n" 
    1127 "  \n" 
    1128 "  Would display the cost of a print job and asks for confirmation.\n" 
     1132"  pknotify -d client:7654 --noremote CONTINUE --confirm \"This job costs 10 " 
     1133"credits\"\n" 
     1134"  \n" 
     1135"  Would display the cost of the print job and asks for confirmation.\n" 
     1136"  If the end user doesn't have PyKotIcon running and accepting connections\n" 
     1137"  from the print server, PyKota will consider that the end user accepted\n" 
     1138"  to print this job.\n" 
    11291139"  \n" 
    11301140"  pknotify --destination $PYKOTAJOBORIGINATINGHOSTNAME:7654 \\\n" 
  • pykota/trunk/TODO

    r3074 r3075  
    2424        - Document the PYKOTA_HOME environment variable. 
    2525         
    26         - Add a command line option to pknotify to decide what should 
    27           happen if there's no PyKotIcon at the other end. 
    28            
    2926        - LDAP : See if setting cn=ThePrinter for user print quota entries 
    3027          could be done, only in the case where userquotabase=user