blob: b52243048afeea133d2db353d7af9d0b70d990ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
"""
Initializer for the krosskexiapp-module.
Description:
This module provides the entry-point for python scripts
to work with a running Kexi application instance.
Author:
Sebastian Sauer <mail@dipe.org>
Copyright:
Dual-licensed under LGPL v2+higher and the BSD license.
"""
try:
import krosskexiapp
except ImportError, e:
raise "Import of the Kross KexiApp module failed.\n%s" % e
def get(modulename):
return krosskexiapp.get(modulename)
def currentConnection():
mainwindow = krosskexiapp.get("KexiAppMainWindow")
return mainwindow.getConnection()
|