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

Documents samplenotifier.

Files:
1 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 :