SF.net SVN: fclient: [567] trunk/fclient/src/fclient/config.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <jU...@us...> - 2008-07-08 16:53:28
|
Revision: 567
http://fclient.svn.sourceforge.net/fclient/?rev=567&view=rev
Author: jUrner
Date: 2008-07-08 09:52:34 -0700 (Tue, 08 Jul 2008)
Log Message:
-----------
clean up
Modified Paths:
--------------
trunk/fclient/src/fclient/config.py
Modified: trunk/fclient/src/fclient/config.py
===================================================================
--- trunk/fclient/src/fclient/config.py 2008-07-08 16:49:12 UTC (rev 566)
+++ trunk/fclient/src/fclient/config.py 2008-07-08 16:52:34 UTC (rev 567)
@@ -1,4 +1,5 @@
-""""""
+"""global application config
+"""
from __future__ import absolute_import
if __name__ == '__main__': # see --> http://bugs.python.org/issue1510172 . works only current dir and below
import os; __path__ = [os.path.dirname(__file__)]
@@ -17,7 +18,6 @@
FclientAppName = 'fclient'
SettingsDir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'settings')
-
#**********************************************************************************
# looks like QObject.findChild() does not always work. docs mention troubles
# with MSVC 6 where you should use qFindChild(). can not test this. so keep
@@ -98,17 +98,13 @@
#**********************************************************************************
class Config(object):
- _UiObjRegistry = weakref.WeakValueDictionary()
-
-
def __init__(self, parent):
-
-
+
self.fcpClient = fcp2.Client() # global fcp client
self.settings = Settings() # global settings class
self.configSettings = ConfigSettings() # settings of the config
+
-
self.settings.readSettings(None, self.configSettings)
self.settings.setStoreLocal(directory=self.configSettings['StoreSettingsLocally'])
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|