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

Exports more environment variables.

Files:
1 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