I get an unhandled exception whenever i try to modify an entry in my
LDAP.
----- Backtrace: ----------------------------------------
17:29:17 An unhandled exception occured. This is most likely a bug
in the programming of Luma. In order to fix this, send an email with the
following text and a detailed description of what you were doing to
luma-users@lists.sourceforge.net.
File "/usr/lib/luma/base/utils/gui/BrowserWidget.py", line 148, in
itemClicked
self.emit(PYSIGNAL("about_to_change"), ())
File "/usr/lib/luma/base/utils/gui/AdvancedObjectWidget.py", line 550, in
aboutToChange
0, -1)
Reason: <type 'exceptions.TypeError'> argument 6 of QMessageBox.warning()
has
an invalid type
---------------------------------------------------------
I suspect this problem to be related to the version of qt or python-qt
i am using, since luma was working fine on Suse Linux 10.1, but it is
broken since i upgraded to 10.3.
The versions i'm using now are:
$ rpm -q python
python-2.5.1-39.2
$ rpm -q python-ldap
python-ldap-2.3.1-18
$ rpm -q python-qt
python-qt-3.17.3-18
$ rpm -q qt3
qt3-3.3.8-76.2
The problem is present in luma 2.3 as well as in luma 2.4.
Looking a little bit closer into the sources, it seems that
QMessageBox.warning did not like the parameter 'None' in the following
lines of code:
lib/luma/base/utils/gui/AdvancedObjectWidget.py:
|
| result = QMessageBox.warning(None,
| self.trUtf8("Save entry"),
| self.trUtf8("""Do you want to save the entry?"""),
| self.trUtf8("&OK"),
| self.trUtf8("&Cancel"),
| None,
| 0, -1)
So i tried to fix this, replacing 'None' with 'self.trUtf8("")' and
this seems to work. I have to mention that i don't know anything
about Python, neither about Qt programming, so i have no idea if this
will break anything else. But at least, it removes the symptom of the
problem for me. I'll attach a patch with my fix.
Nobody/Anonymous ( nobody ) - 2008-03-03 20:10
5
Open
None
Nobody/Anonymous
Interface
None
Public
|
Date: 2008-09-15 12:55 same problem here in luma 2.3 and also in luma 2.4. Platform is Ubuntu |
|
Date: 2008-09-15 12:55 same problem here in luma 2.3 and also in luma 2.4. Platform is Ubuntu |
|
Date: 2008-03-06 10:34 Logged In: NO |
| Filename | Description | Download |
|---|---|---|
| qmessagebox.patch | Patch | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| File Added | 268967: qmessagebox.patch | 2008-03-03 20:10 | nobody |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use