Changeset 2882

Show
Ignore:
Timestamp:
05/11/06 15:22:51 (19 years ago)
Author:
jerome
Message:

Exports more environment variables.

Location:
pykota/trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r2879 r2882  
    518518        os.environ["PYKOTABALANCE"] = str(self.User.AccountBalance or 0.0) 
    519519        os.environ["PYKOTALIFETIMEPAID"] = str(self.User.LifeTimePaid or 0.0) 
     520        os.environ["PYKOTAUSERDESCRIPTION"] = str(self.User.Description or "") 
    520521         
    521522        os.environ["PYKOTAPAGECOUNTER"] = str(self.UserPQuota.PageCounter or 0) 
     
    537538        # printer is a member of 
    538539        os.environ["PYKOTAPGROUPS"] = ",".join([p.Name for p in self.storage.getParentPrinters(self.Printer)]) 
     540        os.environ["PYKOTAPRINTERDESCRIPTION"] = str(self.Printer.Description or "") 
     541        os.environ["PYKOTAPRINTERMAXJOBSIZE"] = str(self.Printer.MaxJobSize or _("Unlimited")) 
     542        os.environ["PYKOTAPRINTERPASSTHROUGHMODE"] = (self.Printer.PassThrough and _("ON")) or _("OFF") 
    539543        self.logdebug("Environment updated.") 
    540544         
  • pykota/trunk/conf/pykota.conf.sample

    r2876 r2882  
    896896# PYKOTAREASON : if the job was denied or a warning needs to be issued, contains 
    897897#                the message to send to the user. 
    898 # 
    899  
     898# PYKOTAUSERDESCRIPTION : the user's textual description 
     899# PYKOTAPRINTERDESCRIPTION : the printer's textual description 
     900# PYKOTAPRINTERPASSTHROUGHMODE : the printer's passthrough mode 
     901# PYKOTAPRINTERMAXJOBSIZE : the printer's maximal job size 
     902# 
    900903 
    901904 
  • pykota/trunk/NEWS

    r2880 r2882  
    2222PyKota NEWS : 
    2323        
     24    - 1.25alpha3 (2006-05-11) : 
     25     
     26        - Now exports more environment variables for the subprocesses. 
     27           
    2428    - 1.25alpha2 (2006-05-03) : 
    2529     
  • pykota/trunk/pykota/version.py

    r2877 r2882  
    2222# 
    2323 
    24 __version__ = "1.25alpha2_unofficial" 
     24__version__ = "1.25alpha3_unofficial" 
    2525 
    2626__doc__ = "PyKota : a complete Printing Quota Solution for CUPS."