Red Hat Bugzilla – Bug 253145
exportCallback is not set when a file is opened through the menu
Last modified: 2010-10-22 13:48:02 EDT
Description of problem:
When a file is opened through the File -> Open menu, the exportCallback is not
set, then 'system-config-cluster' reports an error in console and the 'save-as'
window remains open.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
- copy a working "cluster.conf" in "/tmp/cluster.conf"
- run (as root) "/usr/sbin/system-config-cluster"
- select "File" / "Open" and navigate the tree to reach "/tmp/cluster.conf",
select and open it
- select "File" / "Save as" and write another name like
"/tmp/cluster.conf-test", press OK
The Save as dialog box remains open, and the file is not saved. A python error
(show below) appears in the terminal:
Traceback (most recent call last):
File "/usr/sbin/system-config-cluster", line 280, in save
if self.model_builder.exportModel() == True:
File "/usr/share/system-config-cluster/ModelBuilder.py", line 453, in exportModel
TypeError: 'NoneType' object is not callable
Save as to work, birds chirp, people get happy.
Patch incoming. It seems to WORKFORME.
Created attachment 161717 [details]
Enforce the reset tree function on callback.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
Thanks for the patch! Sorry it took a bit to get to the flag...been on vacation
for two weeks.
In and tested.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.