Changeset 1426 for pykota

Show
Ignore:
Timestamp:
04/06/04 14:00:21 (21 years ago)
Author:
jalet
Message:

uninitialized values caused problems

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/tool.py

    r1421 r1426  
    2222# 
    2323# $Log$ 
     24# Revision 1.80  2004/04/06 12:00:21  jalet 
     25# uninitialized values caused problems 
     26# 
    2427# Revision 1.79  2004/03/28 21:01:29  jalet 
    2528# PYKOTALIMITBY environment variable is now exported too 
     
    740743    def exportJobInfo(self) :     
    741744        """Exports job information to the environment.""" 
    742         os.putenv("PYKOTAUSERNAME", self.username) 
    743         os.putenv("PYKOTAPRINTERNAME", self.printername) 
    744         os.putenv("PYKOTAJOBID", self.jobid) 
     745        os.putenv("PYKOTAUSERNAME", str(self.username)) 
     746        os.putenv("PYKOTAPRINTERNAME", str(self.printername)) 
     747        os.putenv("PYKOTAJOBID", str(self.jobid)) 
    745748        os.putenv("PYKOTATITLE", self.title or "") 
    746749        os.putenv("PYKOTAFILENAME", self.preserveinputfile or "") 
     
    750753    def exportUserInfo(self, userpquota) : 
    751754        """Exports user information to the environment.""" 
    752         os.putenv("PYKOTALIMITBY", userpquota.User.LimitBy) 
     755        os.putenv("PYKOTALIMITBY", str(userpquota.User.LimitBy)) 
    753756        os.putenv("PYKOTABALANCE", str(userpquota.User.AccountBalance or 0.0)) 
    754757        os.putenv("PYKOTALIFETIMEPAID", str(userpquota.User.LifeTimePaid or 0.0))