[Pymoul-svn] SF.net SVN: pymoul: [70] pymoul/trunk/src/moul
Status: Alpha
Brought to you by:
tiran
From: <ti...@us...> - 2007-01-24 20:40:50
|
Revision: 70 http://pymoul.svn.sourceforge.net/pymoul/?rev=70&view=rev Author: tiran Date: 2007-01-24 12:40:47 -0800 (Wed, 24 Jan 2007) Log Message: ----------- Minor fixes for brain bug Modified Paths: -------------- pymoul/trunk/src/moul/file/wdysini.py pymoul/trunk/src/moul/qt/mainwindow.py pymoul/trunk/src/moul/qt/ui/mainwindow.py Modified: pymoul/trunk/src/moul/file/wdysini.py =================================================================== --- pymoul/trunk/src/moul/file/wdysini.py 2007-01-24 18:26:59 UTC (rev 69) +++ pymoul/trunk/src/moul/file/wdysini.py 2007-01-24 20:40:47 UTC (rev 70) @@ -309,14 +309,27 @@ _filename = None def __init__(self): + self._filedata = {} + self._newdata = {} + self._order = [] self.clear() self._fpath = None def clear(self): - self._filedata = {} - self._newdata = {} - self._order = [] + """Clear all informations + """ + self._filedata.clear() + self._newdata.clear() + self._order[:] = [] + def reset(self): + """Reset state of the ini parser + + Copies file data to new data + """ + self._newdata.clear() + self._newdata.update(self._filedata.copy()) + def open(self, path): """Open encrypted file at 'path' """ @@ -388,14 +401,14 @@ if not found: raise ValueError(line) - self._newdata = self._filedata.copy() + self.reset() self.parserDoneHook() def parserDoneHook(self): """Hook called after the data is read and parsed """ pass - + def isChanged(self): """Check if the data was changed """ Modified: pymoul/trunk/src/moul/qt/mainwindow.py =================================================================== --- pymoul/trunk/src/moul/qt/mainwindow.py 2007-01-24 18:26:59 UTC (rev 69) +++ pymoul/trunk/src/moul/qt/mainwindow.py 2007-01-24 20:40:47 UTC (rev 70) @@ -132,6 +132,7 @@ self.on_graphicsini_loaded(gini) # XXX: hard coded for testing purpose + @signalLogDecorator(LOG) def on_graphicsini_loaded(self, gini): """SIGNAL: graphicsIniLoaded(file) """ @@ -231,6 +232,7 @@ self.on_audioini_loaded(aini) # XXX: hard coded for testing purpose + @signalLogDecorator(LOG) def on_audioini_loaded(self, aini): """SIGNAL: graphicsIniLoaded(file) """ Modified: pymoul/trunk/src/moul/qt/ui/mainwindow.py =================================================================== --- pymoul/trunk/src/moul/qt/ui/mainwindow.py 2007-01-24 18:26:59 UTC (rev 69) +++ pymoul/trunk/src/moul/qt/ui/mainwindow.py 2007-01-24 20:40:47 UTC (rev 70) @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'src\moul\qt\ui\mainwindow.ui' # -# Created: Wed Jan 24 19:25:53 2007 +# Created: Wed Jan 24 19:26:57 2007 # by: PyQt4 UI code generator 4.1.1 # # WARNING! All changes made in this file will be lost! This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |