Changeset 35 for pkipplib/trunk

Show
Ignore:
Timestamp:
06/24/06 15:56:24 (18 years ago)
Author:
jerome
Message:

Documents samplenotifier.

Location:
pkipplib/trunk
Files:
2 added
2 modified

Legend:

Unmodified
Added
Removed
  • pkipplib/trunk/pkipplib/pkipplib.py

    r30 r35  
    716716                                      timeinterval=None, 
    717717                                      jobid=None) : 
    718         """Creates a job, printer or server subscription.""" 
     718        """Creates a job, printer or server subscription. 
     719          
     720           uri : the subscription's uri, e.g. ipp://server 
     721           events : a list of events to subscribe to, e.g. ["printer-added", "printer-deleted"] 
     722           recipient : the notifier's uri 
     723           pullmethod : the pull method to use 
     724           charset : the charset to use when sending notifications 
     725           naturallanguage : the language to use when sending notifications 
     726           leaseduration : the duration of the lease in seconds 
     727           timeinterval : the interval of time during notifications 
     728           jobid : the optional job id in case of a job subscription 
     729        """    
    719730        if jobid is not None : 
    720731            opid = IPP_CREATE_JOB_SUBSCRIPTION 
     
    746757             
    747758    def cancelSubscription(self, uri, subscriptionid, jobid=None) :     
    748         """Cancels a subscription.""" 
     759        """Cancels a subscription. 
     760         
     761           uri : the subscription's uri. 
     762           subscriptionid : the subscription's id. 
     763           jobid : the optional job's id. 
     764        """ 
    749765        req = self.newRequest(IPP_CANCEL_SUBSCRIPTION) 
    750766        if jobid is not None : 
  • pkipplib/trunk/README

    r34 r35  
    142142  pkipplib currently includes the following command line tools : 
    143143   
    144         - pksubscribe : can create or delete IPP subscriptions. 
     144    * pksubscribe : can create or delete IPP subscriptions. 
     145     
    145146          See pksubscribe --help for details. 
    146147         
     
    155156                          --password HacKMe \ 
    156157                          --delete 34 58 98 
     158                           
     159    * samplenotifier : can handle printer-added and printer-deleted 
     160      notifications and automatically create or remove printers 
     161      from PyKota's database (just adapt the code for other needs). 
     162       
     163      samplenotifier is present in the notifiers/ directory, but 
     164      won't be installed automatically. 
    157165 
    158166  In the future more command line tools will be included.