-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revive QSqlDatabase (followup c894357)
- Loading branch information
Showing
2 changed files
with
1 addition
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
class QSqlDatabase; | ||
|
||
class QgsAuthManager : QObject | ||
{ | ||
%TypeHeaderCode | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2126011
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @jef-n,
Can you give a little background on this? Was the
QtSql
module previously deprecated in favor of some custom Qgs* SQLite implementation.Or, is this just a
sip
import that was previously dropped because it was unneeded in bindings?2126011
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jef-n do you know what package provides QtSql python bindings on ubuntu/debian? I'm (also Travis) getting a "No module named QtSql" error on startup now, and can't work out how to satisfy this dependancy.
2126011
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually ignore that - it's python-qt4-sql
2126011
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dakcarto QSqlDatabase was masked by this. Using
QSqlDatabase.removeDatabase
producedAttributeError: type object 'QSqlDatabase' has no attribute 'removeDatabase'
2126011
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh that makes sense. Thanks for the explanation.