Changeset 1121 for pykota/trunk/cgi-bin/printquota.cgi
- Timestamp:
- 08/25/03 13:23:05 (21 years ago)
- Files:
-
- 1 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