19 |
import copy |
import copy |
20 |
|
|
21 |
from wxPython.wx import * |
from wxPython.wx import * |
|
from wxPython.wx import __version__ as wxPython_version |
|
22 |
|
|
23 |
import Thuban |
import Thuban |
|
import Thuban.version |
|
24 |
|
|
25 |
from Thuban import _ |
from Thuban import _ |
26 |
from Thuban.Model.session import create_empty_session |
from Thuban.Model.session import create_empty_session |
509 |
def AddDBLayer(self): |
def AddDBLayer(self): |
510 |
"""Add a layer read from a database""" |
"""Add a layer read from a database""" |
511 |
session = self.application.Session() |
session = self.application.Session() |
512 |
dlg = ChooseDBTableDialog(self.application.Session(), self,-1, "") |
dlg = ChooseDBTableDialog(self, self.application.Session()) |
513 |
|
|
514 |
if dlg.ShowModal() == wxID_OK: |
if dlg.ShowModal() == wxID_OK: |
515 |
dbconn, dbtable = dlg.GetTable() |
dbconn, dbtable = dlg.GetTable() |