vpackager / src / vpackager / viewcontrollers.py

Diff from to

src/vpackager/viewcontrollers.py

         return self.model.RefreshHistory()
 
     def apply_filter(self, widget=None, filter=None):
-	return self.model.FilterHistory(filter)
+        return self.model.FilterHistory(filter)
 
     def connect_signals(self):
         # Connect buttons
         self.view.connect_item('about_task', self._about_task_event)
         self.view.connect_item('wipe_history', self._wipe_history_event)
-	self.view.connect_item('filter_all', self.apply_filter, 'all')
-	self.view.connect_item('filter_successful', self.apply_filter,
-			       'successful')
-	self.view.connect_item('filter_failed', self.apply_filter, 'failed')
+        self.view.connect_item('filter_all', self.apply_filter, 'all')
+        self.view.connect_item('filter_successful', self.apply_filter,
+                               'successful')
+        self.view.connect_item('filter_failed', self.apply_filter, 'failed')
         # Connect menu items.
         self.view.rc_menu.connect_item('about_job', self._about_task_event)
         self.view.rc_menu.connect_item('rebuild_job', self._rebuild_job_event)
     def _view_build_log_event(self, widget=None):
         """ Display the build log if it is still present"""
         details = self.model.GetTaskDetails(self.view._selectedjob)
-        if not os.path.exists(details['stdout']):
+        if not details['stdout']:
+            dia = guitools.message.Error(
+                text = 'Build log for this job is not available.',
+                parent = self._parentwindow)
+            if dia.run():
+                return dia.destroy()
+        elif not os.path.exists(details['stdout']):
             dia = guitools.message.Error(
                 parent = self._parentwindow,
                 text = \
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.