Changeset 441604f
- Timestamp:
- Jan 25, 2012, 4:36:04 PM (13 years ago)
- Branches:
- no-cups
- Parents:
- ca1cfa9
- git-author:
- Steven Allen <steven@…> (01/25/12 16:36:04)
- git-committer:
- Steven Allen <steven@…> (01/25/12 16:36:04)
- Location:
- server/lib/gutenbach
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
server/lib/gutenbach/ipp/core/attributegroup.py
rffbe41d r441604f 75 75 def __delitem__(self, name): 76 76 self.attributes = filter(lambda x: x.name != name, 77 77 self.attributes) 78 78 79 79 def append(self, attribute): -
server/lib/gutenbach/server/errors.py
r5e70cc2 r441604f 8 8 class InvalidJobException(Exception): 9 9 def __init__(self, jobid): 10 10 self.jobid = jobid 11 11 def __str__(self): 12 12 return "Job does not exist: %d" % self.jobid 13 13 14 14 class InvalidPrinterStateException(Exception): -
server/lib/gutenbach/server/job.py
rca1cfa9 r441604f 12 12 def __init__(self, job_id=None, creator=None, name=None, 13 13 priority=None, document=None): 14 14 """Create an empty Gutenbach job. 15 15 16 16 Parameters … … 26 26 document : file object 27 27 A file object containing the job data. 28 29 """ 28 """ 30 29 31 30 self.player = None 32 31 self.document = None 33 32 34 33 self.id = job_id 35 34 self.creator = creator 36 35 self.name = name … … 43 42 44 43 def __repr__(self): 45 44 return str(self) 46 45 47 46 def __str__(self):
Note: See TracChangeset
for help on using the changeset viewer.