Changeset 756 for pykota/trunk/bin
- Timestamp:
- 02/08/03 10:38:06 (22 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/edpykota
r750 r756 17 17 # 18 18 # $Log$ 19 # Revision 1.9 2003/02/08 09:38:06 jalet 20 # Badly placed test 21 # 19 22 # Revision 1.8 2003/02/07 22:53:57 jalet 20 23 # Checks if printer name is valid before adding it … … 174 177 else : 175 178 (softlimit, hardlimit) = (prototype["softlimit"], prototype["hardlimit"]) 176 if (hardlimit is None) or (softlimit is None) :177 raise PyKotaToolError, "Both hard and soft limits must be set ! Aborting."178 179 if hardlimit is None : 179 180 hardlimit = softlimit … … 182 183 softlimit = hardlimit 183 184 self.logger.message("Undefined soft limit set to %i on printer %s." % (softlimit, printer)) 185 if (hardlimit is None) or (softlimit is None) : 186 raise PyKotaToolError, "Both hard and soft limits must be set ! Aborting." 184 187 for name in names : 185 188 if options["users"] :