Changeset 3437 for pkipplib/trunk/README

Show
Ignore:
Timestamp:
10/06/08 00:24:42 (16 years ago)
Author:
jerome
Message:

Removed spaces at EOL.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkipplib/trunk/README

    r3380 r3437  
    1 pkipplib : IPP and CUPS support for Python 
     1ypkipplib : IPP and CUPS support for Python 
    22 
    33$Id$ 
     
    88# the Free Software Foundation, either version 3 of the License, or 
    99# (at your option) any later version. 
    10 #  
     10# 
    1111# This program is distributed in the hope that it will be useful, 
    1212# but WITHOUT ANY WARRANTY; without even the implied warranty of 
    1313# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1414# GNU General Public License for more details. 
    15 #  
     15# 
    1616# You should have received a copy of the GNU General Public License 
    1717# along with this program.  If not, see <http://www.gnu.org/licenses/>. 
     
    2929and its instance methods. 
    3030 
    31 Finally, a CUPS class can be leveraged to easily deal with CUPS  
     31Finally, a CUPS class can be leveraged to easily deal with CUPS 
    3232print servers. 
    3333 
     
    4242 
    4343        1 - Grab the latest version of this library from : 
    44          
     44 
    4545            http://www.pykota.com/software/pkipplib/ 
    46              
    47         2 - Extract the tarball :     
    48          
     46 
     47        2 - Extract the tarball : 
     48 
    4949            $ tar -zxf pkipplib-x.yy.tar.gz 
    50              
    51         3 - Install the Python module :     
    52          
     50 
     51        3 - Install the Python module : 
     52 
    5353            $ cd pkipplib-x.yy 
    5454            $ python setup.py install 
     
    7878print request 
    7979 
    80 # Access one of the job's attributes directly  
     80# Access one of the job's attributes directly 
    8181print request.job["job-name"] 
    8282--- CUT --- 
     
    119119# Lower level API : 
    120120request = cups.newRequest(pkipplib.IPP_GET_PRINTER_ATTRIBUTES) 
    121 request.operation["printer-uri"] = ("uri",  
     121request.operation["printer-uri"] = ("uri", 
    122122                                    cups.identifierToURI("printers", "HP2100")) 
    123 for attribute in ("printer-uri-supported",                                      
     123for attribute in ("printer-uri-supported", 
    124124                  "printer-type", 
    125125                  "member-uris") : 
    126     # IMPORTANT : here, despite the unusual syntax, we append to               
     126    # IMPORTANT : here, despite the unusual syntax, we append to 
    127127    # the list of requested attributes : 
    128128    request.operation["requested-attributes"] = ("nameWithoutLanguage", attribute) 
    129      
    130 # Sends this request to the CUPS server     
     129 
     130# Sends this request to the CUPS server 
    131131answer = cups.doRequest(request) 
    132132 
     
    140140 
    141141  pkipplib currently includes the following command line tools : 
    142    
     142 
    143143    * pksubscribe : can create or delete IPP subscriptions. 
    144      
     144 
    145145          See pksubscribe --help for details. 
    146          
     146 
    147147          examples : 
    148            
     148 
    149149            $ pksubscribe --cups http://localhost:631 \ 
    150150                          --events printer-added,printer-deleted \ 
    151151                          --recipient mynotifier \ 
    152152                          --duration 0 
    153                            
    154             $ pksubscribe --username root \               
     153 
     154            $ pksubscribe --username root \ 
    155155                          --password HacKMe \ 
    156156                          --delete 34 58 98 
    157                            
     157 
    158158    * samplenotifier : can handle printer-added and printer-deleted 
    159159      notifications and automatically create or remove printers 
    160160      from PyKota's database (just adapt the code for other needs). 
    161        
     161 
    162162      samplenotifier is present in the notifiers/ directory, but 
    163163      won't be installed automatically. You must put it into 
     
    165165 
    166166  In the future more command line tools will be included. 
    167    
     167 
    168168======================================================================= 
    169169