Changeset 3122
- Timestamp:
- 12/10/06 19:23:44 (18 years ago)
- Location:
- pykota/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/conf/pykota.conf.sample
r3044 r3122 608 608 # cmy ===> Cyan, Magenta, Yellow 609 609 # rgb ===> Red, Green, Blue 610 # gc ===> Grayscale, Colored : this is a pseudo colorspace useful 611 # if all you need is differentiating grayscale from 612 # colored pages. 610 613 # 611 614 # Supported resolutions for ink accounting are any number of dots … … 643 646 # accounter : ink(bw) 644 647 # accounter : ink(cmy, 72) 648 # accounter : ink(gc, 72) 645 649 # 646 650 # This directive can be set either globally or per printer or both. … … 689 693 # cmy ===> Cyan, Magenta, Yellow 690 694 # rgb ===> Red, Green, Blue 695 # gc ===> Grayscale, Colored : this is a pseudo colorspace useful 696 # if all you need is differentiating grayscale from 697 # colored pages. 691 698 # 692 699 # Supported resolutions for ink accounting are any number of dots … … 1244 1251 # coefficient_black 1245 1252 # 1253 # gc : 1254 # coefficient_grayscale 1255 # coefficient_colored 1256 # 1246 1257 # Any coefficient which is not set is considered to be equal to 1.0 1247 1258 # -
pykota/trunk/NEWS
r3117 r3122 22 22 PyKota NEWS : 23 23 24 - 1.26alpha1 (2006-12-10) : 25 26 - Added support for pkpgcounter v2.13's GC pseudo colorspace if you 27 only want to differentiate grayscale pages from colored pages. 28 29 - Fixed a compatibility problem dumpykota's "--format cups" command line 30 option. 31 24 32 - 1.25 (2006-12-03) : 25 33 -
pykota/trunk/pykota/accounters/ink.py
r3046 r3122 33 33 "RGB" : { "R" : "red", "G" : "green", "B" : "blue" } , 34 34 "BW" : { "B" : "black", "W" : "white" } , 35 "GC" : { "G" : "grayscale", "C" : "colored" } , 35 36 } 36 37 def computeJobSize(self) : … … 50 51 (colorspace, resolution) = parameters 51 52 colorspace = colorspace.lower() 52 if colorspace not in ("cmyk", "bw", "cmy", "rgb" ) :53 if colorspace not in ("cmyk", "bw", "cmy", "rgb", "gc") : 53 54 raise PyKotaAccounterError, "Invalid parameters for ink accounter : [%s]" % self.arguments 54 55