Changeset c1dc25f


Ignore:
Timestamp:
Jan 21, 2012, 3:43:44 PM (12 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
no-cups
Children:
56fd535
Parents:
9da7428
git-author:
Jessica B. Hamrick <jhamrick@…> (01/21/12 15:43:44)
git-committer:
Jessica B. Hamrick <jhamrick@…> (01/21/12 15:43:44)
Message:

Send URI added to printer.py

Location:
server/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • server/lib/TODO

    r9da7428 rc1dc25f  
    1919     [ ] resume printer
    2020     [\] set printer attributes
    21      [ ] send uri
     21     [\] send uri
    2222     [\] set job attributes
    2323     [X] restart job
  • server/lib/gutenbach/server/printer.py

    r9da7428 rc1dc25f  
    452452        job.spool(document)
    453453
    454     def send_uri(self):
    455         pass
     454    def send_uri(self, job_id, document_uri, document_name=None,
     455                 document_format=None, document_natural_language=None,
     456                 requesting_user_name=None, compression=None,
     457                 last_document=None):
     458        job = self.get_job(job_id)
     459        # XXX: need to validate URI
     460        # XXX: need to deal with the URI stream?
     461        #job.spool_uri(document_uri)
    456462
    457463    def get_job_attributes(self, job_id, requested_attributes=None):
  • server/lib/gutenbach/server/requests.py

    r72c3fcb rc1dc25f  
    930930            REQUIRED 'job-id' (integer(1:MAX)) and 'printer-uri' (uri)
    931931            REQUIRED 'document-uri' (uri)
    932               -or-  'job-uri' (uri)
     932            OPTIONAL 'job-uri' (uri)
    933933            OPTIONAL 'requesting-user-name' (name(MAX))
    934934            OPTIONAL 'document-name' (name(MAX))
     
    936936            OPTIONAL 'document-format' (mimeMediaType)
    937937            OPTIONAL 'document-natural-language' (naturalLanguage)
    938         Group 2: Document Content
    939938           
    940939        Response
     
    10141013            self.printer.send_uri(
    10151014                job_id,
    1016                 document_uri=document_uri,
     1015                document_uri,
    10171016                document_name=document_name,
    10181017                document_format=document_format,
Note: See TracChangeset for help on using the changeset viewer.