Changeset 7c8a2f8
- Timestamp:
- Jan 21, 2012, 3:04:44 PM (12 years ago)
- Branches:
- no-cups
- Children:
- 441604f
- Parents:
- 21b140d
- git-author:
- Jessica B. Hamrick <jhamrick@…> (01/21/12 15:04:44)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (01/21/12 15:04:44)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/lib/gutenbach/server/requests.py
r21b140d r7c8a2f8 699 699 @handler_for(ipp.OperationCodes.SEND_URI) 700 700 def send_uri(self, request, response): 701 """This OPTIONAL operation is identical to the Send-Document operation 702 (see section 3.3.1) except that a client MUST supply a URI reference 703 ("document-uri" operation attribute) rather than the document data 704 itself. If a Printer object supports this operation, clients can use 705 both Send-URI or Send-Document operations to add new documents to an 706 existing multi-document Job object. However, if a client needs to 707 indicate that the previous Send-URI or Send-Document was the last 708 document, the client MUST use the Send-Document operation with no 709 document data and the "last-document" flag set to 'true' (rather than 710 using a Send-URI operation with no "document-uri" operation 701 """3.2.2 Send URI 702 703 This OPTIONAL operation is identical to the Send-Document 704 operation (see section 3.3.1) except that a client MUST supply 705 a URI reference ('document-uri' operation attribute) rather 706 than the document data itself. If a Printer object supports 707 this operation, clients can use both Send-URI or Send-Document 708 operations to add new documents to an existing multi-document 709 Job object. However, if a client needs to indicate that the 710 previous Send-URI or Send-Document was the last document, the 711 client MUST use the Send-Document operation with no document 712 data and the 'last-document' flag set to 'true' (rather than 713 using a Send-URI operation with no 'document-uri' operation 711 714 attribute). 712 715 713 If a Printer object supports this operation, it MUST also support the714 Print-URI operation (see section 3.2.2).715 716 The Printer object MUST validate the syntax and URI scheme of the717 supplied URI before returning a response, just as in the Print-URI718 operation. The IPP Printer MAY validate the accessibility ofthe719 document as part of the operation or subsequently (see section720 3.2.2).716 If a Printer object supports this operation, it MUST also 717 support the Print-URI operation (see section 3.2.2). 718 719 The Printer object MUST validate the syntax and URI scheme of 720 the supplied URI before returning a response, just as in the 721 Print-URI operation. The IPP Printer MAY validate the 722 accessibility of the document as part of the operation or 723 subsequently (see section 3.2.2). 721 724 722 725 Request … … 751 754 REQUIRED 'job-state-reasons' (1setOf type2 keyword) 752 755 OPTIONAL 'job-state-message' (text(MAX)) 753 OPTIONAL 'number-of-intervening-jobs' (integer(0:MAX))""" 756 OPTIONAL 'number-of-intervening-jobs' (integer(0:MAX)) 757 758 """ 754 759 755 760 operation = request.attribute_groups[0]
Note: See TracChangeset
for help on using the changeset viewer.