Bug 518210 - ui instance has no attribute 'config' - self.config not initialized
Summary: ui instance has no attribute 'config' - self.config not initialized
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-firewall
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Thomas Woerner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-19 13:54 UTC by Mads Kiilerich
Modified: 2009-12-13 14:25 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-13 14:25:09 UTC


Attachments (Terms of Use)

Description Mads Kiilerich 2009-08-19 13:54:14 UTC
Description of problem:

after browsing through lokkit I got the following, mangled by newt tty settings:

Traceback (most recent call last):
File "/usr/bin/system-config-firewall-tui", line 41, in <module>
fw_config.ui.run()
File "/usr/share/system-config-firewall/fw_tui.py", line 863, in run
res = self.main()
File "/usr/share/system-config-firewall/fw_tui.py", line 738, in main
if self.apply() == 0:
  <T  File "/usr/share/system-config-firewall/fw_tui.py", line 625, in applyen
args = self.genArgs()
File "/usr/share/system-config-firewall/fw_tui.py", line 594, in genArgs
if self.config and self.config.services and \
  AttributeError: ui instance has no attribute 'config'


$ pylint /usr/share/system-config-firewall/fw_tui.py|grep '\<config\>'
W:197:ui.loadConfig: Attribute 'config' defined outside __init__

I assume that self.config should have been initialized to None


Version-Release number of selected component (if applicable):

system-config-firewall-tui-1.2.16-3.fc11.noarch

Comment 2 Mads Kiilerich 2009-12-13 14:25:09 UTC
Apparently fixed in F12. Closing.


Note You need to log in before you can comment on or make changes to this bug.