Changeset 1062 for pykota/trunk/pykota/storage.py
- Timestamp:
- 07/05/03 09:46:50 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storage.py
r1043 r1062 21 21 # 22 22 # $Log$ 23 # Revision 1.17 2003/07/05 07:46:50 jalet 24 # The previous bug fix was incomplete. 25 # 23 26 # Revision 1.16 2003/06/25 19:52:31 jalet 24 27 # Should be ready for testing :-) … … 124 127 def setLimitBy(self, limitby) : 125 128 """Sets the user's limiting factor.""" 126 limitby = limitby.lower() 129 try : 130 limitby = limitby.lower() 131 except AttributeError : 132 limitby = "quota" 127 133 if limitby in ["quota", "balance"] : 128 134 self.parent.writeUserLimitBy(self, limitby) … … 151 157 def setLimitBy(self, limitby) : 152 158 """Sets the user's limiting factor.""" 153 limitby = limitby.lower() 159 try : 160 limitby = limitby.lower() 161 except AttributeError : 162 limitby = "quota" 154 163 if limitby in ["quota", "balance"] : 155 164 self.parent.writeGroupLimitBy(self, limitby)