From: <jb...@us...> - 2009-12-25 23:40:51
|
Revision: 437 http://pytrainer.svn.sourceforge.net/pytrainer/?rev=437&view=rev Author: jblance Date: 2009-12-25 23:40:43 +0000 (Fri, 25 Dec 2009) Log Message: ----------- Added support to force DB check by presence of FORCE_DB_CHECK file Modified Paths: -------------- pytrainer/trunk/pytrainer/main.py Modified: pytrainer/trunk/pytrainer/main.py =================================================================== --- pytrainer/trunk/pytrainer/main.py 2009-12-25 23:11:26 UTC (rev 436) +++ pytrainer/trunk/pytrainer/main.py 2009-12-25 23:40:43 UTC (rev 437) @@ -97,7 +97,7 @@ def __init__(self,filename = None, data_path = None): logging.debug('>>') self.data_path = data_path - self.version ="1.7.0_svn#436" + self.version ="1.7.0_svn#437" self.date = Date() main_dir = os.path.realpath(os.path.dirname(__file__)) #why? sys.path.insert(0, main_dir) #why? @@ -127,6 +127,11 @@ self.ddbb.connect() self.record = Record(data_path,self) + #Look for force check file + check_file = self.data_path+"/FORCE_DB_CHECK" + if os.path.isfile(check_file): + self.check = True + os.remove(check_file) if self.check: #self.migrationCheck() self.sanityCheck() # Deprecates migrationCheck. Review first installation and version control This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |