#81 Progress bar fails entire workflow; post package selection
Closed: Invalid None Opened 17 years ago by jsteffan.

Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/revisor/package_selection.py", line 447, in button_forward_clicked
self.gui.displayBuildMedia()
File "/usr/lib/python2.5/site-packages/revisor/gui.py", line 273, in displayBuildMedia
self.BuildMedia = build_media.BuildMedia(self)
File "/usr/lib/python2.5/site-packages/revisor/build_media.py", line 60, in init
self.base.lift_off()
File "/usr/lib/python2.5/site-packages/revisor/base.py", line 288, in lift_off
self.check_dependencies()
File "/usr/lib/python2.5/site-packages/revisor/base.py", line 200, in check_dependencies
pbar = self.progress_bar("Resolving Dependencies")
File "/usr/lib/python2.5/site-packages/revisor/base.py", line 174, in progress_bar
return revisor.progress.ProgressCallbackGUI(title = title, parent = parent, xml = xml)
File "/usr/lib/python2.5/site-packages/revisor/progress.py", line 101, in init
ProgressGUI.init(self, title = title, parent = parent, xml = xml)
File "/usr/lib/python2.5/site-packages/revisor/progress.py", line 57, in init
self.pbar = xml.get_widget("part_progress")
AttributeError: 'NoneType' object has no attribute 'get_widget'

I've been trying to fufill the needed objects and might still get it, but just needed to file the bug for a heads up with where this next commit is having issues.


This is the problem when moving from GUI/CLI code to merging duplicate code into Base; we don't know if we are GUI and at what state we are anymore. Base should now about self.cli or self.gui, so I set RevisorBase.mode to revisorBase, now that RevisorBase.progress_bar() knows what progress bar to create/return, ProgressGUI needs to know that it should update the BuildMedia tasks list.

This is the problem when moving from GUI/CLI code to merging duplicate code into Base; we don't know if we are GUI and at what state we are anymore. Base should now about self.cli or self.gui, so I set RevisorBase.mode to revisorBase, now that RevisorBase.progress_bar() knows what progress bar to create/return, ProgressGUI needs to know that it should update the BuildMedia tasks list.

Traceback (most recent call last):
File "/home/kanarip/devel/revisor/revisor/load_kickstart.py", line 175, in button_forward_clicked
self.gui.displayBuildMedia()
File "/home/kanarip/devel/revisor/revisor/gui.py", line 273, in displayBuildMedia
self.BuildMedia = build_media.BuildMedia(self)
File "/home/kanarip/devel/revisor/revisor/build_media.py", line 57, in init
self.pbar = self.base.progress_bar(title = "Setting up Yum", xml = self.gui.frame_xml)
File "/home/kanarip/devel/revisor/revisor/base.py", line 172, in progress_bar
if not self.mode.BuildMedia == None:
AttributeError: RevisorGUI instance has no attribute 'BuildMedia'

Traceback (most recent call last):
File "/home/kanarip/devel/revisor/revisor/load_kickstart.py", line 175, in button_forward_clicked
self.gui.displayBuildMedia()
File "/home/kanarip/devel/revisor/revisor/gui.py", line 273, in displayBuildMedia
self.BuildMedia = build_media.BuildMedia(self)
File "/home/kanarip/devel/revisor/revisor/build_media.py", line 57, in init
self.pbar = self.base.progress_bar(title = "Setting up Yum", xml = self.gui.frame_xml)
File "/home/kanarip/devel/revisor/revisor/base.py", line 172, in progress_bar
if not self.mode.BuildMedia == None:
AttributeError: RevisorGUI instance has no attribute 'BuildMedia'

moved some code from BuildMedia.init() to BuildMedia.start(), so that BuildMedia completely inits before progress bars are created, now self.mode.BuildMedia exists

moved some code from BuildMedia.init() to BuildMedia.start(), so that BuildMedia completely inits before progress bars are created, now self.mode.BuildMedia exists

Metadata Update from @jsteffan:
- Issue assigned to kanarip
- Issue set to the milestone: 2.0.3 Release

8 years ago

Log in to comment on this ticket.

Metadata