12 |
""" |
""" |
13 |
|
|
14 |
__version__ = "$Revision$" |
__version__ = "$Revision$" |
15 |
|
# $Source$ |
16 |
__ThubanVersion__ = "0.8" #"$THUBAN_0_2$" |
# $Id$ |
|
#__BuildDate__ = "$Date$" |
|
17 |
|
|
18 |
import os |
import os |
19 |
import copy |
import copy |
48 |
|
|
49 |
from Thuban.UI.dock import DockFrame |
from Thuban.UI.dock import DockFrame |
50 |
from Thuban.UI.join import JoinDialog |
from Thuban.UI.join import JoinDialog |
51 |
from Thuban.UI.dbdialog import DBFrame, ChooseDBTableDialog |
from Thuban.UI.dbdialog import DBFrame, DBDialog, ChooseDBTableDialog |
52 |
import resource |
import resource |
53 |
import Thuban.Model.resource |
import Thuban.Model.resource |
54 |
|
|
375 |
"Thuban Session File (*.thuban)|*.thuban", |
"Thuban Session File (*.thuban)|*.thuban", |
376 |
wxOPEN) |
wxOPEN) |
377 |
if dlg.ShowModal() == wxID_OK: |
if dlg.ShowModal() == wxID_OK: |
378 |
self.application.OpenSession(dlg.GetPath()) |
self.application.OpenSession(dlg.GetPath(), |
379 |
|
self.run_db_param_dialog) |
380 |
dlg.Destroy() |
dlg.Destroy() |
381 |
|
|
382 |
|
def run_db_param_dialog(self, parameters, message): |
383 |
|
dlg = DBDialog(self, _("DB Connection Parameters"), parameters, |
384 |
|
message) |
385 |
|
return dlg.RunDialog() |
386 |
|
|
387 |
def SaveSession(self): |
def SaveSession(self): |
388 |
if self.application.session.filename == None: |
if self.application.session.filename == None: |
389 |
self.SaveSessionAs() |
self.SaveSessionAs() |