Show
Ignore:
Timestamp:
07/05/03 09:46:50 (21 years ago)
Author:
jalet
Message:

The previous bug fix was incomplete.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storage.py

    r1043 r1062  
    2121# 
    2222# $Log$ 
     23# Revision 1.17  2003/07/05 07:46:50  jalet 
     24# The previous bug fix was incomplete. 
     25# 
    2326# Revision 1.16  2003/06/25 19:52:31  jalet 
    2427# Should be ready for testing :-) 
     
    124127    def setLimitBy(self, limitby) :     
    125128        """Sets the user's limiting factor.""" 
    126         limitby = limitby.lower() 
     129        try : 
     130            limitby = limitby.lower() 
     131        except AttributeError :     
     132            limitby = "quota" 
    127133        if limitby in ["quota", "balance"] : 
    128134            self.parent.writeUserLimitBy(self, limitby) 
     
    151157    def setLimitBy(self, limitby) :     
    152158        """Sets the user's limiting factor.""" 
    153         limitby = limitby.lower() 
     159        try : 
     160            limitby = limitby.lower() 
     161        except AttributeError :     
     162            limitby = "quota" 
    154163        if limitby in ["quota", "balance"] : 
    155164            self.parent.writeGroupLimitBy(self, limitby)