Changeset 1121
- Timestamp:
- 08/25/03 13:23:05 (21 years ago)
- Location:
- pykota/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/cgi-bin/printquota.cgi
r1113 r1121 23 23 # 24 24 # $Log$ 25 # Revision 1.13 2003/08/25 11:23:05 jalet 26 # More powerful CGI script for quota reports 27 # 25 28 # Revision 1.12 2003/07/29 20:55:17 jalet 26 29 # 1.14 is out ! … … 158 161 else : 159 162 printers = self.storage.getMatchingPrinters("*") 160 if self.form.has_key("ugmask") : 161 ugmask = self.form["ugmask"].value 162 else : 163 ugmask = "*" 163 remuser = os.environ.get("REMOTE_USER", "root") 164 if remuser == "root" : 165 if self.form.has_key("ugmask") : 166 ugmask = self.form["ugmask"].value 167 else : 168 ugmask = "*" 169 else : 170 if self.form.has_key("isgroup") : 171 user = self.storage.getUser(remuser) 172 if user.Exists : 173 ugmask = " ".join([ g.Name for g in self.storage.getUserGroups(user) ]) 174 else : 175 ugmask = remuser # result will probably be empty, we don't care 176 else : 177 ugmask = remuser 164 178 if self.form.has_key("isgroup") : 165 179 isgroup = 1 -
pykota/trunk/NEWS
r1116 r1121 22 22 PyKota NEWS : 23 23 24 - 1.15alpha3 : 25 26 - CGI script now tries to restrict view when the 27 REMOTE_USER environment variable is set. This allows 28 people to protect its use with .htaccess files. 29 When unprotected, or if REMOTE_USER is 'root', then 30 unrestricted access is granted. 31 24 32 - 1.15alpha2 : 25 33 -
pykota/trunk/pykota/version.py
r1116 r1121 21 21 # 22 22 23 __version__ = "1.15alpha 2_unofficial"23 __version__ = "1.15alpha3_unofficial" 24 24 25 25 __doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""