Author: reinhard Date: 2011-06-18 04:17:56 -0500 (Sat, 18 Jun 2011) New Revision: 10323
Modified: trunk/gnue-designer/ trunk/gnue-designer/src/base/TemplateBase.py trunk/gnue-designer/src/base/document.py trunk/gnue-designer/src/base/tools/SchemaNavigator.py trunk/gnue-designer/src/base/tools/SchemaViewer.py Log: backends rather than deprecated GConnection Property changes on: trunk/gnue-designer ___________________________________________________________________ Name: bzr:revision-info - timestamp: 2011-05-27 16:02:56.151999950 -0700 committer: whizman properties: branch-nick: designer + timestamp: 2011-05-27 16:58:20.556999922 -0700 committer: whizman properties: branch-nick: designer Name: bzr:file-ids - src/base/Incubator.py 1368@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-designer:src%2Fbase%2FIncubator.py src/base/document.py 8929@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-designer:src%2Fbase%2Fdocument.py src/forms/LayoutEditor/LayoutEditor.py 2348@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-designer:src%2Fforms%2FLayoutEditor%2FLayoutEditor.py src/forms/document.py 8389@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-designer:src%2Fforms%2Fdocument.py src/ui/wx/Instance.py 8335@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-designer:src%2Fui%2Fwx%2FInstance.py + src/base/TemplateBase.py 1413@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-designer:src%2Fbase%2FTemplateBase.py src/base/document.py 8929@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-designer:src%2Fbase%2Fdocument.py src/base/tools/SchemaNavigator.py 4174@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-designer:src%2Fbase%2Ftools%2FSchemaNavigator.py src/base/tools/SchemaViewer.py 2344@3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-designer:src%2Fbase%2Ftools%2FSchemaViewer.py Name: bzr:revision-id:v4 - 937 reinhard.muel...@bytewise.at-20100426083744-iq5ahvdxf38ltx6r 938 whizman_software_solutions_www.whizman.com-20110131201023-bmx4kgkf4erlim85 939 whizman_software_solutions_www.whizman.com-20110226005239-cn6eioyybe5p62rh 940 whizman-20110504201148-w669gtbff176vhop 941 whizman-20110505231025-243w4sfxhzqcbzt2 942 whizman-20110509181949-gnbxobve89qk8pr5 943 whizman-20110509204654-xx9cb9tiuszib409 944 whizman-20110519181636-ighctsn5h1uftknz 945 whizman-20110527230256-kqjr2eb33a29zy9o + 937 reinhard.muel...@bytewise.at-20100426083744-iq5ahvdxf38ltx6r 938 whizman_software_solutions_www.whizman.com-20110131201023-bmx4kgkf4erlim85 939 whizman_software_solutions_www.whizman.com-20110226005239-cn6eioyybe5p62rh 940 whizman-20110504201148-w669gtbff176vhop 941 whizman-20110505231025-243w4sfxhzqcbzt2 942 whizman-20110509181949-gnbxobve89qk8pr5 943 whizman-20110509204654-xx9cb9tiuszib409 944 whizman-20110519181636-ighctsn5h1uftknz 945 whizman-20110527230256-kqjr2eb33a29zy9o 946 whizman-20110527235820-zqeownp0345308ww Name: bzr:text-parents - src/base/Incubator.py svn-v3-single1-dHJ1bmsvZ251ZS1kZXNpZ25lcg..:3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-designer:9955 src/base/document.py whizman_software_solutions_www.whizman.com-20110131201023-bmx4kgkf4erlim85 src/forms/LayoutEditor/LayoutEditor.py whizman-20110505231025-243w4sfxhzqcbzt2 src/forms/document.py whizman-20110504201148-w669gtbff176vhop src/ui/wx/Instance.py svn-v3-single1-dHJ1bmsvZ251ZS1kZXNpZ25lcg..:3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-designer:9955 + src/base/TemplateBase.py svn-v3-single1-dHJ1bmsvZ251ZS1kZXNpZ25lcg..:3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-designer:9955 src/base/tools/SchemaNavigator.py svn-v3-single1-dHJ1bmsvZ251ZS1kZXNpZ25lcg..:3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-designer:9955 src/base/tools/SchemaViewer.py svn-v3-single1-dHJ1bmsvZ251ZS1kZXNpZ25lcg..:3a364389-8fce-0310-8f11-cc363fde16c7:trunk%2Fgnue-designer:9955 Modified: trunk/gnue-designer/src/base/TemplateBase.py =================================================================== --- trunk/gnue-designer/src/base/TemplateBase.py 2011-06-18 09:17:53 UTC (rev 10322) +++ trunk/gnue-designer/src/base/TemplateBase.py 2011-06-18 09:17:56 UTC (rev 10323) @@ -47,6 +47,7 @@ from gnue.common.formatting import GTypecast from gnue.common.definitions.GParserHelpers import GContent +from gnue.common.datasources import backends # # These Identify the types of templates. A template @@ -148,12 +149,15 @@ def GetAvailableConnections(self): rv = [] - p = self._connections.getAllConnectionParameters() - for conn in p.keys(): - if p[conn].has_key('comment'): - rv.append((conn, '%s [%s]' % (p[conn]['comment'], conn))) + #p = self._connections.getAllConnectionParameters() + parm = {} + for section in backends.BACKENDS.sections(): + parm[section] = dict(backends.BACKENDS.items(section)) + for conn in parm.keys(): + if parm[conn].has_key('comment'): + rv.append((conn, '%s [%s]' % (parm[conn]['comment'], conn))) else: - rv.append((conn, '%s [%s]' % (conn, p[conn]['provider']))) + rv.append((conn, '%s [%s]' % (conn, parm[conn]['provider']))) return rv Modified: trunk/gnue-designer/src/base/document.py =================================================================== --- trunk/gnue-designer/src/base/document.py 2011-06-18 09:17:53 UTC (rev 10322) +++ trunk/gnue-designer/src/base/document.py 2011-06-18 09:17:56 UTC (rev 10323) @@ -46,6 +46,7 @@ from gnue.common.base import errors, log from gnue.common.utils.FileUtils import dyn_import from gnue.common.events import EventController, Event +from gnue.common.datasources import backends from gnue.designer.base.MenuBar import MenuBar from gnue.designer.base.UndoManager import UndoManager @@ -575,7 +576,7 @@ eventdata={'type': tool.instance}) # Add connections - for conn in self.connections.getAllConnectionParameters().keys(): + for conn in backends.BACKENDS.sections(): self.menubar.addAction('File|Connect To', conn, 'Connect:%s' % conn, help=u_("Login to %s connection") % conn, Modified: trunk/gnue-designer/src/base/tools/SchemaNavigator.py =================================================================== --- trunk/gnue-designer/src/base/tools/SchemaNavigator.py 2011-06-18 09:17:53 UTC (rev 10322) +++ trunk/gnue-designer/src/base/tools/SchemaNavigator.py 2011-06-18 09:17:56 UTC (rev 10323) @@ -56,7 +56,7 @@ from gnue.common.datasources import GDataSource from gnue.common.apps import errors -from gnue.common.datasources import Exceptions +from gnue.common.datasources import backends, Exceptions from gnue.common import events from gnue.designer.base.ToolBase import * @@ -74,7 +74,7 @@ self.connections = self.document.app.connections self.connectionName = None - self.connectionNames = self.connections.getConnectionNames() + self.connectionNames = backends.BACKENDS.sections() self.connectionNames.sort() self.connectionCache = {} Modified: trunk/gnue-designer/src/base/tools/SchemaViewer.py =================================================================== --- trunk/gnue-designer/src/base/tools/SchemaViewer.py 2011-06-18 09:17:53 UTC (rev 10322) +++ trunk/gnue-designer/src/base/tools/SchemaViewer.py 2011-06-18 09:17:56 UTC (rev 10323) @@ -27,7 +27,7 @@ import sys, os, cPickle, traceback, StringIO, string import wx from gnue.common.apps import GDebug -from gnue.common.datasources import GDataSource +from gnue.common.datasources import backends, GDataSource from gnue.common.apps import RuntimeSettings from gnue.common import events from gnue.designer.base.ToolBase import * @@ -40,7 +40,7 @@ self.connections = self.document.app.connections self.connectionName = None - self.connectionNames = self.connections.getConnectionNames() + self.connectionNames = backends.BACKENDS.sections() self.connectionNames.sort() self.connectionCache = {} _______________________________________________ commit-gnue mailing list commit-gnue@gnu.org https://lists.gnu.org/mailman/listinfo/commit-gnue