Ignore:
Timestamp:
Dec 23, 2011, 9:37:39 PM (12 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
no-cups
Children:
1037115
Parents:
b828a96
git-author:
Jessica B. Hamrick <jhamrick@…> (12/23/11 21:37:39)
git-committer:
Jessica B. Hamrick <jhamrick@…> (12/23/11 21:37:39)
Message:

Reorganization

File:
1 edited

Legend:

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

    raded2d1 r793432f  
    11from exceptions import InvalidJobException, InvalidPrinterStateException
    22import os
    3 import gutenbach.ipp.object_attributes.job_description_attributes as jda
     3import gutenbach.ipp as ipp
    44
    55# initialize logger
     
    5151    @property
    5252    def job_id(self):
    53         return jda.JobId(self.jid)
     53        return ipp.JobId(self.jid)
    5454
    5555    @property
    5656    def job_name(self):
    57         return jda.JobName(self.name)
     57        return ipp.JobName(self.name)
    5858
    5959    # XXX: we need to actually calculate this!
    6060    @property
    6161    def job_originating_user_name(self):
    62         return jda.JobOriginatingUserName("jhamrick")
     62        return ipp.JobOriginatingUserName("jhamrick")
    6363
    6464    # XXX: we need to actually calculate this!
    6565    @property
    6666    def job_k_octets(self):
    67         return jda.JobKOctets(1)
     67        return ipp.JobKOctets(1)
    6868
    6969    @property
    7070    def job_state(self):
    71         return jda.JobState(self.status)
     71        return ipp.JobState(self.status)
    7272
    7373    @property
    7474    def job_printer_uri(self):
    75         return jda.JobPrinterUri(self.printer.uri)
     75        return ipp.JobPrinterUri(self.printer.uri)
    7676
    7777    def get_job_attributes(self, request):
Note: See TracChangeset for help on using the changeset viewer.