Changeset 2525 for pykota/trunk/cgi-bin

Show
Ignore:
Timestamp:
09/29/05 13:44:32 (19 years ago)
Author:
jerome
Message:

Fixed pykotme.cgi to allow root to receive print quotes too.

Files:
1 modified

Legend:

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

    r2524 r2525  
    155155                self.body += "<p>%s</p>" % (_("Job size : %i pages") % jobsize) 
    156156                 
    157             remuser = os.environ.get("REMOTE_USER", "root")     
     157            remuser = os.environ.get("REMOTE_USER") 
    158158            # special hack to accomodate mod_auth_ldap Apache module 
    159159            try : 
    160160                remuser = remuser.split("=")[1].split(",")[0] 
    161             except IndexError :     
     161            except :     
    162162                pass 
    163             if remuser == "root" :     
     163            if not remuser :     
    164164                self.body += "<p>%s</p>" % _("The exact cost of a print job can only be determined for a particular user. Please retry while logged-in.") 
    165165            else :