Changeset 2032 for pykota/trunk/pykota/dumper.py
- Timestamp:
- 01/19/05 09:49:41 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/dumper.py
r2016 r2032 21 21 # 22 22 # $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 # 23 29 # Revision 1.1 2005/01/08 17:03:07 jalet 24 30 # "--format cups" output more resembling CUPS' page_log. … … 69 75 "pgroupname", 70 76 ] 71 def main(self, arguments, options ) :77 def main(self, arguments, options, restricted=1) : 72 78 """Print Quota Data Dumper.""" 73 if not self.config.isAdmin :79 if restricted and not self.config.isAdmin : 74 80 raise PyKotaToolError, "%s : %s" % (pwd.getpwuid(os.geteuid())[0], _("You're not allowed to use this command.")) 75 81