Changeset 35 for pkipplib/trunk
- Timestamp:
- 06/24/06 15:56:24 (18 years ago)
- Location:
- pkipplib/trunk
- Files:
-
- 2 added
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pkipplib/trunk/pkipplib/pkipplib.py
r30 r35 716 716 timeinterval=None, 717 717 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 """ 719 730 if jobid is not None : 720 731 opid = IPP_CREATE_JOB_SUBSCRIPTION … … 746 757 747 758 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 """ 749 765 req = self.newRequest(IPP_CANCEL_SUBSCRIPTION) 750 766 if jobid is not None : -
pkipplib/trunk/README
r34 r35 142 142 pkipplib currently includes the following command line tools : 143 143 144 - pksubscribe : can create or delete IPP subscriptions. 144 * pksubscribe : can create or delete IPP subscriptions. 145 145 146 See pksubscribe --help for details. 146 147 … … 155 156 --password HacKMe \ 156 157 --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. 157 165 158 166 In the future more command line tools will be included.