Show
Ignore:
Timestamp:
11/15/04 20:59:34 (19 years ago)
Author:
jalet
Message:

PyKota banners now basically work !

Files:
1 modified

Legend:

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

    r1917 r1918  
    2222# 
    2323# $Log$ 
     24# Revision 1.140  2004/11/15 19:59:34  jalet 
     25# PyKota banners now basically work ! 
     26# 
    2427# Revision 1.139  2004/11/15 15:54:03  jalet 
    2528# Continued integration of Matt's patch for banners 
     
    12211224           by the printer. 
    12221225        """ 
    1223         banner = "" # no banner by default 
    12241226        if bannerfileorcommand : 
     1227            banner = "" # no banner by default 
    12251228            if (os.access(bannerfileorcommand, os.X_OK)) : 
    12261229                self.logdebug("Launching %s to generate a banner." % bannerfileorcommand) 
    12271230                child = popen2.Popen3(bannerfileorcommand, capturestderr=1) 
     1231                banner = child.fromchild.read() 
    12281232                child.tochild.close() 
    12291233                child.childerr.close() 
    1230                 banner = child.fromchild.read() 
    12311234                child.fromchild.close() 
    12321235                status = child.wait() 
     
    12431246                    banner = fh.read() 
    12441247                    fh.close() 
    1245         return cStringIO.StringIO(banner) 
     1248            if banner :         
     1249                return cStringIO.StringIO(banner) 
    12461250     
    12471251    def startingBanner(self, printername) :