Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
Falkon
Commits
7534bde0
Commit
7534bde0
authored
Aug 15, 2022
by
Alessio Molinari
Browse files
sql related functions are now properly exported to Python
parent
d7f8b9a3
Pipeline
#218738
passed with stage
in 6 minutes and 30 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/PyFalkon/CMakeLists.txt
View file @
7534bde0
...
...
@@ -154,6 +154,7 @@ foreach(INCLUDE_DIR ${PYSIDE_INCLUDE_DIRS})
list
(
APPEND PYSIDE_ADDITIONAL_INCLUDES
"
${
INCLUDE_DIR
}
/QtWebChannel"
)
list
(
APPEND PYSIDE_ADDITIONAL_INCLUDES
"
${
INCLUDE_DIR
}
/QtWebEngineCore"
)
list
(
APPEND PYSIDE_ADDITIONAL_INCLUDES
"
${
INCLUDE_DIR
}
/QtWebEngineWidgets"
)
list
(
APPEND PYSIDE_ADDITIONAL_INCLUDES
"
${
INCLUDE_DIR
}
/QtSql"
)
endforeach
()
set
(
PyFalkon_SRCS
...
...
src/plugins/PyFalkon/autotests/basictest.py
View file @
7534bde0
...
...
@@ -14,6 +14,9 @@ class BasicTest(unittest.TestCase):
window
=
Falkon
.
MainApplication
.
instance
().
createWindow
(
Falkon
.
Qz
.
BW_NewWindow
)
self
.
assertIsNotNone
(
window
)
def
test_sql_availability
(
self
):
self
.
assertTrue
(
hasattr
(
Falkon
.
SqlDatabase
,
'database'
))
suite
=
unittest
.
defaultTestLoader
.
loadTestsFromTestCase
(
BasicTest
)
if
unittest
.
TextTestRunner
().
run
(
suite
).
failures
:
...
...
src/plugins/PyFalkon/typesystem_pyfalkon.xml
View file @
7534bde0
...
...
@@ -2,6 +2,7 @@
<typesystem
package=
"PyFalkon"
>
<load-typesystem
name=
"typesystem_webenginecore.xml"
generate=
"no"
/>
<load-typesystem
name=
"typesystem_webenginewidgets.xml"
generate=
"no"
/>
<load-typesystem
name=
"typesystem_sql.xml"
generate=
"no"
/>
<inject-code
class=
"native"
position=
"beginning"
>
#include
<
pythonplugin.h
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment