Changeset 768 for pykota/trunk/bin
- Timestamp:
- 02/08/03 23:39:46 (22 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/edpykota
r767 r768 17 17 # 18 18 # $Log$ 19 # Revision 1.16 2003/02/08 22:39:46 jalet 20 # --reset command line option added 21 # 19 22 # Revision 1.15 2003/02/08 22:20:01 jalet 20 23 # Clarification on why we don't check with /etc/passwd to see if the user … … 98 101 -p | --prototype u|g Uses user u or group g as a prototype to set 99 102 print quotas 103 104 -r | --reset Resets the printed page counter for the user 105 or group to zero. The life time page counter 106 is kept unchanged. 100 107 101 108 -S | --softlimit sl Sets the quota soft limit to sl pages. … … 223 230 if options["users"] : 224 231 self.storage.setUserPQuota(name, printer, softlimit, hardlimit) 232 if options["reset"] : 233 self.storage.resetUserPQuota(name, printer) 225 234 else : 226 235 self.storage.setGroupPQuota(name, printer, softlimit, hardlimit) 236 if options["reset"] : 237 self.storage.resetGroupPQuota(name, printer) 227 238 228 239 if __name__ == "__main__" : … … 233 244 "printer" : "*", \ 234 245 } 235 short_options = "vhaug p:P:S:H:"236 long_options = ["help", "version", "add", "users", "groups", " prototype=", "printer=", "softlimit=", "hardlimit="]246 short_options = "vhaugrp:P:S:H:" 247 long_options = ["help", "version", "add", "users", "groups", "reset", "prototype=", "printer=", "softlimit=", "hardlimit="] 237 248 238 249 # Initializes the command line tool … … 252 263 options["softlimit"] = options["S"] or options["softlimit"] 253 264 options["hardlimit"] = options["H"] or options["hardlimit"] 265 options["reset"] = options["r"] or options["reset"] 254 266 255 267 if options["help"] :