Changeset 1439

Show
Ignore:
Timestamp:
04/16/04 19:03:49 (20 years ago)
Author:
jalet
Message:

The list of printers groups the current printer is a member of is
now exported in the PYKOTAPGROUPS environment variable

Location:
pykota/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/conf/pykota.conf.sample

    r1430 r1439  
    464464# PYKOTAUSERNAME : user's name 
    465465# PYKOTAPRINTERNAME : printer's name 
     466# PYKOTAPGROUPS : list of printers groups the current printer is a member of 
    466467# PYKOTAJOBID : job's id 
    467468# PYKOTATITLE : job's title 
  • pykota/trunk/pykota/tool.py

    r1434 r1439  
    2222# 
    2323# $Log$ 
     24# Revision 1.83  2004/04/16 17:03:49  jalet 
     25# The list of printers groups the current printer is a member of is 
     26# now exported in the PYKOTAPGROUPS environment variable 
     27# 
    2428# Revision 1.82  2004/04/13 09:38:03  jalet 
    2529# More work on correct child processes handling 
     
    805809        os.putenv("PYKOTAHARDLIMIT", str(userpquota.HardLimit)) 
    806810        os.putenv("PYKOTADATELIMIT", str(userpquota.DateLimit)) 
     811         
     812        # not really an user information, but anyway 
     813        # exports the list of printers groups the current 
     814        # printer is a member of 
     815        os.putenv("PYKOTAPGROUPS", ",".join([p.Name for p in self.storage.getParentPrinters(userpquota.Printer)])) 
    807816             
    808817    def prehook(self, userpquota) :