Ignore:
Timestamp:
Jan 22, 2012, 12:15:47 AM (12 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
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)
Message:

Some IPP documentation in printer.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/lib/gutenbach/server/requests.py

    r17eb586 rb3a56af  
    229229    @handler_for(ipp.OperationCodes.VALIDATE_JOB)
    230230    def validate_job(self, request, response):
    231         """3.2.3 Validate-Job Operation
     231        """RFC 2911: 3.2.3 Validate-Job Operation
    232232
    233233        This REQUIRED operation is similar to the Print-Job operation
     
    312312    @handler_for(ipp.OperationCodes.GET_JOBS)
    313313    def get_jobs(self, request, response):
    314         """3.2.6 Get-Jobs Operation
     314        """RFC 2911: 3.2.6 Get-Jobs Operation
    315315       
    316316        This REQUIRED operation allows a client to retrieve the list
     
    401401    @handler_for(ipp.OperationCodes.PRINT_URI)
    402402    def print_uri(self, request, response):
    403         """3.2.2 Print-URI Operation
     403        """RFC 2911: 3.2.2 Print-URI Operation
    404404
    405405        This OPTIONAL operation is identical to the Print-Job
     
    415415        Printer object MUST reject the request and return the
    416416        'client-error-uri- scheme-not-supported' status code.
    417 
    418         The IPP Printer MAY validate the accessibility of the document
    419         as part of the operation or subsequently.  If the Printer
    420         determines an accessibility problem before returning an
    421         operation response, it rejects the request and returns the
    422         'client-error-document-access- error' status code.  The
    423         Printer MAY also return a specific document access error code
    424         using the 'document-access-error' operation attribute (see
    425         section 3.1.6.4).
    426 
    427         If the Printer determines this document accessibility problem
    428         after accepting the request and returning an operation
    429         response with one of the successful status codes, the Printer
    430         adds the 'document-access- error' value to the job's
    431         'job-state-reasons' attribute and MAY populate the job's
    432         'job-document-access-errors' Job Description attribute (see
    433         section 4.3.11).  See The Implementer's Guide [IPP- IIG] for
    434         suggested additional checks.
    435417                                                                             
    436418        If the Printer object supports this operation, it MUST support
     
    631613    @handler_for(ipp.OperationCodes.PAUSE_PRINTER)
    632614    def pause_printer(self, request, response):
    633         """3.2.7 Pause-Printer Operation
     615        """RFC 2911: 3.2.7 Pause-Printer Operation
    634616
    635617        This OPTIONAL operation allows a client to stop the Printer
     
    694676    @handler_for(ipp.OperationCodes.RESUME_PRINTER)
    695677    def resume_printer(self, request, response):
    696         """3.2.8 Resume-Printer Operation
     678        """RFC 2911: 3.2.8 Resume-Printer Operation
    697679
    698680        This operation allows a client to resume the Printer object
     
    838820    @handler_for(ipp.OperationCodes.CANCEL_JOB)
    839821    def cancel_job(self, request, response):
    840         """3.3.3 Cancel-Job Operation
     822        """RFC 2911: 3.3.3 Cancel-Job Operation
    841823
    842824        This REQUIRED operation allows a client to cancel a Print Job
     
    877859        operation.
    878860
    879         Access Rights: The authenticated user (see section 8.3)
    880         performing this operation must either be the job owner or an
    881         operator or administrator of the Printer object (see Sections
    882         1 and 8.5).  Otherwise, the IPP object MUST reject the
    883         operation and return: 'client-error-forbidden',
    884         'client-error-not-authenticated', or
    885         'client-error-not-authorized' as appropriate.
    886 
    887861        Request
    888862        -------
     
    938912    @handler_for(ipp.OperationCodes.SEND_DOCUMENT)
    939913    def send_document(self, request, response):
    940         """3.3.1 Send-Document Operation
     914        """RFC 2911: 3.3.1 Send-Document Operation
    941915       
    942916        This OPTIONAL operation allows a client to create a
     
    976950        interval specified by the Printer object's
    977951        '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 (as
    981         determined in the Create-Job operation) or an operator or
    982         administrator of the Printer object (see Sections 1 and
    983         8.5). Otherwise, the IPP object MUST reject the operation and
    984         return: 'client-error-forbidden', 'client-
    985         error-not-authenticated', or 'client-error-not-authorized' as
    986         appropriate.
    987952
    988953        Request
     
    10901055    @handler_for(ipp.OperationCodes.SEND_URI)
    10911056    def send_uri(self, request, response):
    1092 
    1093         """3.2.2 Send URI
     1057        """RFC 2911: 3.2.2 Send URI
    10941058
    10951059        This OPTIONAL operation is identical to the Send-Document
     
    12221186    @handler_for(ipp.OperationCodes.GET_JOB_ATTRIBUTES)
    12231187    def get_job_attributes(self, request, response):
    1224         """3.3.4 Get-Job-Attributes Operation
     1188        """RFC 2911: 3.3.4 Get-Job-Attributes Operation
    12251189
    12261190        This REQUIRED operation allows a client to request the values
Note: See TracChangeset for help on using the changeset viewer.