Changeset 2381 for pykota/trunk/cgi-bin

Show
Ignore:
Timestamp:
07/21/05 14:17:32 (19 years ago)
Author:
jerome
Message:

Doesn't display the list of printers when the CGI script doesn't require an
authentication, because the size of the job doesn't depend on the printer
being used. When there's authentication, the exact cost of a print job
depends on the printer(s) chosen and the user's overcharging factor.
Severity : minor

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/cgi-bin/pykotme.cgi

    r2379 r2381  
    139139                inputfile = self.form["inputfile"].value 
    140140                 
    141         self.body += self.htmlListPrinters(printers or [])             
    142         self.body += "<br />" 
     141        if os.environ.get("REMOTE_USER") is not None :         
     142            self.body += self.htmlListPrinters(printers or [])             
     143            self.body += "<br />" 
    143144        self.body += _("Filename") + " : " 
    144145        self.body += '<input type="file" size="64" name="inputfile" />'