Revision: 350
http://pytrainer.svn.sourceforge.net/pytrainer/?rev=350&view=rev
Author: jblance
Date: 2009-09-23 10:13:16 +0000 (Wed, 23 Sep 2009)
Log Message:
-----------
Fix to allow plugins to be enabled first attempt
Modified Paths:
--------------
pytrainer/trunk/pytrainer/plugins.py
Modified: pytrainer/trunk/pytrainer/plugins.py
===================================================================
--- pytrainer/trunk/pytrainer/plugins.py 2009-09-23 09:15:18 UTC (rev 349)
+++ pytrainer/trunk/pytrainer/plugins.py 2009-09-23 10:13:16 UTC (rev 350)
@@ -118,7 +118,8 @@
if not os.path.isdir(plugindir):
os.mkdir(plugindir)
if not os.path.isfile(plugindir+"/conf.xml"):
- savedOptions.append(("status","0"))
+ if ("status", "1") not in savedOptions:
+ savedOptions.append(("status","0"))
info = XMLParser(plugindir+"/conf.xml")
info.createXMLFile("pytrainer-plugin",savedOptions)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|