Changeset 2032 for pykota/trunk/pykota

Show
Ignore:
Timestamp:
01/19/05 09:49:41 (19 years ago)
Author:
jalet
Message:

Now dumpykota.cgi behaves like printquota.cgi wrt the REMOTE_USER environment
variables if the script is username+password protected.
Small fix in printquota.cgi wrt ldap auth with Apache : the workaround was
not used everywhere.

Location:
pykota/trunk/pykota
Files:
2 modified

Legend:

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

    r2016 r2032  
    2121# 
    2222# $Log$ 
     23# Revision 1.2  2005/01/19 08:49:41  jalet 
     24# Now dumpykota.cgi behaves like printquota.cgi wrt the REMOTE_USER environment 
     25# variables if the script is username+password protected. 
     26# Small fix in printquota.cgi wrt ldap auth with Apache : the workaround was 
     27# not used everywhere. 
     28# 
    2329# Revision 1.1  2005/01/08 17:03:07  jalet 
    2430# "--format cups" output more resembling CUPS' page_log. 
     
    6975                        "pgroupname", 
    7076                      ] 
    71     def main(self, arguments, options) : 
     77    def main(self, arguments, options, restricted=1) : 
    7278        """Print Quota Data Dumper.""" 
    73         if not self.config.isAdmin : 
     79        if restricted and not self.config.isAdmin : 
    7480            raise PyKotaToolError, "%s : %s" % (pwd.getpwuid(os.geteuid())[0], _("You're not allowed to use this command.")) 
    7581             
  • pykota/trunk/pykota/version.py

    r2030 r2032  
    2222# 
    2323 
    24 __version__ = "1.21alpha20_unofficial" 
     24__version__ = "1.21alpha21_unofficial" 
    2525 
    2626__doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""