Changeset f6e2532 for server/lib/gutenbach/server/printer.py
- Timestamp:
- Dec 23, 2011, 1:09:01 PM (12 years ago)
- Branches:
- no-cups
- Children:
- aded2d1
- Parents:
- 94a4825
- git-author:
- Jessica B. Hamrick <jhamrick@…> (12/23/11 13:09:01)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (12/23/11 13:09:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/lib/gutenbach/server/printer.py
rcad7502 rf6e2532 32 32 "pdl-override-supported", 33 33 "printer-up-time", 34 "compression-supported" 34 "compression-supported", 35 "multiple-operation-time-out", 36 "multiple-document-jobs-supported", 35 37 ] 38 39 operations = [ 40 "print-job", 41 "complete-job", 42 "start-job", 43 "get-job", 44 "get-jobs", 45 ] 46 36 47 37 48 #def __init__(self, name, card, mixer): … … 102 113 def ipp_versions_supported(self): 103 114 return ("1.0", "1.1") 115 104 116 # XXX: We should query ourself for the supported operations 105 106 117 @property 107 118 def operations_supported(self): 108 return 0xa# get-jobs119 return ipp.Operations.GET_JOBS # get-jobs 109 120 110 121 @property … … 151 162 def compression_supported(self): 152 163 return "none" 164 165 @property 166 def multiple_operation_time_out(self): 167 return 240 168 169 @property 170 def multiple_document_jobs_supported(self): 171 return False 153 172 154 173 def get_printer_attributes(self, request): … … 159 178 160 179 ## Printer operations 161 @property162 def next_jobid(self):163 self._next_jobid += 1164 return self._next_jobid165 180 166 181 def print_job(self, job): 167 jobid = self.next_jobid 182 jobid = self._next_jobid 183 self._next_jobid += 1 168 184 self.active_jobs.append(jobid) 169 185 self.jobs[jobid] = job
Note: See TracChangeset
for help on using the changeset viewer.