On Mon, Mar 11, 2013 at 04:06:49PM -0400, Chris Lumens wrote:
+ def _check_rescan(self, *args):
+ if threadMgr.get("AnaStorageThread"):
+ self._elapsed += 1
+
+ # If more than five seconds has elapsed since the rescan started,
+ # give the user the option to return to the hub.
+ if self._elapsed >= 5:
+ self._notebook.set_current_page(2)
+
+ return True
+
We should probably handle any errors raised by the storage thread here.
threadMgr.wait() obviously can't be used so maybe we need to change .get() to
check for errors if the object doesn't exist. eg.
def raise_error(self, name):
if self._errors.get(name) is not None:
raise self._errors[name][0], self._errors[name][1], self._errors[name][2]
return None
def get(self, name)
obj = self.get(name).join()
if obj:
return obj
else:
return self.raise_error(name)
And then change wait() to also use raise_error
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)