Changeset b3a56af for server/lib/gutenbach/server/requests.py
- Timestamp:
- Jan 22, 2012, 12:15:47 AM (12 years ago)
- Branches:
- no-cups
- Children:
- 97f20dd
- Parents:
- 17eb586
- git-author:
- Jessica B. Hamrick <jhamrick@…> (01/22/12 00:15:47)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (01/22/12 00:15:47)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/lib/gutenbach/server/requests.py
r17eb586 rb3a56af 229 229 @handler_for(ipp.OperationCodes.VALIDATE_JOB) 230 230 def validate_job(self, request, response): 231 """ 3.2.3 Validate-Job Operation231 """RFC 2911: 3.2.3 Validate-Job Operation 232 232 233 233 This REQUIRED operation is similar to the Print-Job operation … … 312 312 @handler_for(ipp.OperationCodes.GET_JOBS) 313 313 def get_jobs(self, request, response): 314 """ 3.2.6 Get-Jobs Operation314 """RFC 2911: 3.2.6 Get-Jobs Operation 315 315 316 316 This REQUIRED operation allows a client to retrieve the list … … 401 401 @handler_for(ipp.OperationCodes.PRINT_URI) 402 402 def print_uri(self, request, response): 403 """ 3.2.2 Print-URI Operation403 """RFC 2911: 3.2.2 Print-URI Operation 404 404 405 405 This OPTIONAL operation is identical to the Print-Job … … 415 415 Printer object MUST reject the request and return the 416 416 'client-error-uri- scheme-not-supported' status code. 417 418 The IPP Printer MAY validate the accessibility of the document419 as part of the operation or subsequently. If the Printer420 determines an accessibility problem before returning an421 operation response, it rejects the request and returns the422 'client-error-document-access- error' status code. The423 Printer MAY also return a specific document access error code424 using the 'document-access-error' operation attribute (see425 section 3.1.6.4).426 427 If the Printer determines this document accessibility problem428 after accepting the request and returning an operation429 response with one of the successful status codes, the Printer430 adds the 'document-access- error' value to the job's431 'job-state-reasons' attribute and MAY populate the job's432 'job-document-access-errors' Job Description attribute (see433 section 4.3.11). See The Implementer's Guide [IPP- IIG] for434 suggested additional checks.435 417 436 418 If the Printer object supports this operation, it MUST support … … 631 613 @handler_for(ipp.OperationCodes.PAUSE_PRINTER) 632 614 def pause_printer(self, request, response): 633 """ 3.2.7 Pause-Printer Operation615 """RFC 2911: 3.2.7 Pause-Printer Operation 634 616 635 617 This OPTIONAL operation allows a client to stop the Printer … … 694 676 @handler_for(ipp.OperationCodes.RESUME_PRINTER) 695 677 def resume_printer(self, request, response): 696 """ 3.2.8 Resume-Printer Operation678 """RFC 2911: 3.2.8 Resume-Printer Operation 697 679 698 680 This operation allows a client to resume the Printer object … … 838 820 @handler_for(ipp.OperationCodes.CANCEL_JOB) 839 821 def cancel_job(self, request, response): 840 """ 3.3.3 Cancel-Job Operation822 """RFC 2911: 3.3.3 Cancel-Job Operation 841 823 842 824 This REQUIRED operation allows a client to cancel a Print Job … … 877 859 operation. 878 860 879 Access Rights: The authenticated user (see section 8.3)880 performing this operation must either be the job owner or an881 operator or administrator of the Printer object (see Sections882 1 and 8.5). Otherwise, the IPP object MUST reject the883 operation and return: 'client-error-forbidden',884 'client-error-not-authenticated', or885 'client-error-not-authorized' as appropriate.886 887 861 Request 888 862 ------- … … 938 912 @handler_for(ipp.OperationCodes.SEND_DOCUMENT) 939 913 def send_document(self, request, response): 940 """ 3.3.1 Send-Document Operation914 """RFC 2911: 3.3.1 Send-Document Operation 941 915 942 916 This OPTIONAL operation allows a client to create a … … 976 950 interval specified by the Printer object's 977 951 'multiple-operation-time-out' attribute. 978 979 Access Rights: The authenticated user (see section 8.3)980 performing this operation must either be the job owner (as981 determined in the Create-Job operation) or an operator or982 administrator of the Printer object (see Sections 1 and983 8.5). Otherwise, the IPP object MUST reject the operation and984 return: 'client-error-forbidden', 'client-985 error-not-authenticated', or 'client-error-not-authorized' as986 appropriate.987 952 988 953 Request … … 1090 1055 @handler_for(ipp.OperationCodes.SEND_URI) 1091 1056 def send_uri(self, request, response): 1092 1093 """3.2.2 Send URI 1057 """RFC 2911: 3.2.2 Send URI 1094 1058 1095 1059 This OPTIONAL operation is identical to the Send-Document … … 1222 1186 @handler_for(ipp.OperationCodes.GET_JOB_ATTRIBUTES) 1223 1187 def get_job_attributes(self, request, response): 1224 """ 3.3.4 Get-Job-Attributes Operation1188 """RFC 2911: 3.3.4 Get-Job-Attributes Operation 1225 1189 1226 1190 This REQUIRED operation allows a client to request the values
Note: See TracChangeset
for help on using the changeset viewer.