Changeset b828a96 for server/lib/gutenbach/server/requests.py
- Timestamp:
- Dec 23, 2011, 9:04:31 PM (12 years ago)
- Branches:
- no-cups
- Children:
- 793432f
- Parents:
- aded2d1
- git-author:
- Jessica B. Hamrick <jhamrick@…> (12/23/11 21:04:31)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (12/23/11 21:04:31)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/lib/gutenbach/server/requests.py
raded2d1 rb828a96 53 53 except ipp.errors.IPPException: 54 54 exctype, excval, exctb = sys.exc_info() 55 logger.error( traceback.format_exc())55 logger.error("%s: %s" % (exctype.__name__, excval.message)) 56 56 response = ipp.ops.make_empty_response(request) 57 57 excval.update_response(response) … … 86 86 """ 87 87 88 raise NotImplementedError88 raise ipp.errors.ServerErrorOperationNotSupported 89 89 90 90 @handler_for(consts.Operations.VALIDATE_JOB) 91 91 def validate_job(self, request): 92 92 93 raise NotImplementedError93 raise ipp.errors.ServerErrorOperationNotSupported 94 94 95 95 @handler_for(consts.Operations.GET_JOBS) … … 129 129 @handler_for(consts.Operations.PRINT_URI) 130 130 def print_uri(self, request): 131 raise NotImplementedError131 raise ipp.errors.ServerErrorOperationNotSupported 132 132 133 133 @handler_for(consts.Operations.CREATE_JOB) … … 181 181 """ 182 182 183 raise NotImplementedError183 raise ipp.errors.ServerErrorOperationNotSupported 184 184 185 185 @handler_for(consts.Operations.PAUSE_PRINTER) 186 186 def pause_printer(self, request): 187 raise NotImplementedError187 raise ipp.errors.ServerErrorOperationNotSupported 188 188 189 189 @handler_for(consts.Operations.RESUME_PRINTER) 190 190 def resume_printer(self, request): 191 raise NotImplementedError191 raise ipp.errors.ServerErrorOperationNotSupported 192 192 193 193 @handler_for(consts.Operations.GET_PRINTER_ATTRIBUTES) … … 252 252 @handler_for(consts.Operations.SET_PRINTER_ATTRIBUTES) 253 253 def set_printer_attributes(self, request): 254 raise NotImplementedError254 raise ipp.errors.ServerErrorOperationNotSupported 255 255 256 256 ##### Job Commands … … 258 258 @handler_for(consts.Operations.CANCEL_JOB) 259 259 def cancel_job(self, request): 260 raise NotImplementedError260 raise ipp.errors.ServerErrorOperationNotSupported 261 261 262 262 @handler_for(consts.Operations.SEND_DOCUMENT) 263 263 def send_document(self, request): 264 raise NotImplementedError264 raise ipp.errors.ServerErrorOperationNotSupported 265 265 266 266 @handler_for(consts.Operations.SEND_URI) 267 267 def send_uri(self, request): 268 raise NotImplementedError268 raise ipp.errors.ServerErrorOperationNotSupported 269 269 270 270 @handler_for(consts.Operations.GET_JOB_ATTRIBUTES) … … 297 297 @handler_for(consts.Operations.SET_JOB_ATTRIBUTES) 298 298 def set_job_attributes(self, request): 299 raise NotImplementedError299 raise ipp.errors.ServerErrorOperationNotSupported 300 300 301 301 @handler_for(consts.Operations.RESTART_JOB) 302 302 def restart_job(self, request): 303 raise NotImplementedError303 raise ipp.errors.ServerErrorOperationNotSupported 304 304 305 305 @handler_for(consts.Operations.PROMOTE_JOB) 306 306 def promote_job(self, request): 307 raise NotImplementedError307 raise ipp.errors.ServerErrorOperationNotSupported 308 308 309 309 ##### CUPS Specific Commands … … 311 311 @handler_for(consts.Operations.CUPS_GET_DOCUMENT) 312 312 def cups_get_document(self, request): 313 raise NotImplementedError313 raise ipp.errors.ServerErrorOperationNotSupported 314 314 315 315 @handler_for(consts.Operations.CUPS_GET_DEFAULT)
Note: See TracChangeset
for help on using the changeset viewer.