- Timestamp:
- 02/08/03 23:18:15 (22 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/edpykota
r763 r766 17 17 # 18 18 # $Log$ 19 # Revision 1.14 2003/02/08 22:18:15 jalet 20 # Now checks user and group names for validity before adding them 21 # 19 22 # Revision 1.13 2003/02/08 22:09:02 jalet 20 23 # Only printer was added the first time. … … 196 199 if options["add"] : 197 200 if options["users"] : 198 self.storage.addUserPQuota(name, printer) 199 quota = self.storage.getUserPQuota(name, printer) 201 if self.isValidName(name) : 202 self.storage.addUserPQuota(name, printer) 203 quota = self.storage.getUserPQuota(name, printer) 204 else : 205 self.logger.log_message("Invalid user name %s" % name) 200 206 else : 201 self.storage.addGroupPQuota(name, printer) 202 quota = self.storage.getGroupPQuota(name, printer) 207 if self.isValidName(name) : 208 self.storage.addGroupPQuota(name, printer) 209 quota = self.storage.getGroupPQuota(name, printer) 210 else : 211 self.logger.log_message("Invalid group name %s" % name) 203 212 if quota is None : 204 213 self.logger.log_message("Quota not found for object %s on printer %s." % (name, printer))