Show
Ignore:
Timestamp:
07/29/03 22:55:17 (21 years ago)
Author:
jalet
Message:

1.14 is out !

Files:
1 modified

Legend:

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

    r1091 r1113  
    2121# 
    2222# $Log$ 
     23# Revision 1.49  2003/07/29 20:55:17  jalet 
     24# 1.14 is out ! 
     25# 
    2326# Revision 1.48  2003/07/21 23:01:56  jalet 
    2427# Modified some messages aout soft limit 
     
    234237        self.smtpserver = self.config.getSMTPServer() 
    235238         
     239    def clean(self) :     
     240        """Ensures that the database is closed.""" 
     241        try : 
     242            self.storage.close() 
     243        except (TypeError, NameError, AttributeError) :     
     244            pass 
     245             
    236246    def display_version_and_quit(self) : 
    237247        """Displays version number, then exists successfully.""" 
     248        self.clean() 
    238249        print version.__version__ 
    239250        sys.exit(0) 
     
    241252    def display_usage_and_quit(self) : 
    242253        """Displays command line usage, then exists successfully.""" 
     254        self.clean() 
    243255        print self.documentation 
    244256        sys.exit(0)