If the p5i file doesn't exists then it's working fine for me. I am getting the dialog:

Error reading the p5i file.

best
Michal

jmr wrote:
Thanks - can you also check that trying to open a non existent p5i file shows an appropriate error, and not a back trace.

JR

Michal Pryc wrote:
John,
LGTM. I have tested and the help for webinstall opens at:

"1.6.1. How to Use WebInstall to Add Repositories and Install Packages"

best
Michal

jmr wrote:
Padraig O'Briain wrote:
John,

Are there formatting issues or is it just the mailer?
Just the mailer.
http://cr.opensolaris.org/~jmr/wi_8141_8142_context_help_14April_3pm/src/gui/modules/webinstall.py.wdiff.html


You have caught the error so it no longer throws an exception.
Is there still a problem that relative pathnames do not work?
The issue was that the relative pathname I had tried was to my own working dir, but we are running as root so the relative pathname is actually, relative to root '/'. It was my mistake, that helped me catch the failure. So running from the command line you need to specify the full path to the p5i file.

JR

Padraig

On 04/14/09 12:21, jmr wrote:
Simple fixes to add context sensitive help to Webinstall, now a target is available in the delivered help file. Also catches an issue when failing to open a p5i file.

JR

8141 Webinstall needs context sensitive help
8142 Webinstall crashes when open fails on p5i file


--- a/src/gui/modules/webinstall.py    Mon Apr 13 13:16:54 2009 -0700
+++ b/src/gui/modules/webinstall.py    Tue Apr 14 12:03:28 2009 +0100
@@ -215,7 +215,7 @@
                self.__exit_app()

        def __on_help_button_clicked(self, widget):
- gui_misc.display_help(self.application_dir) # Need target , "webinstall") + gui_misc.display_help(self.application_dir, "webinstall")

        def __exit_app(self, be_name = None):
                self.w_webinstall_dialog.destroy()
@@ -369,6 +369,7 @@
                '''<path to mimetype file|origin_url>
returns list of publisher and package list tuples'''
                p5i_info = None
+                file_obj = None
if self.param.endswith(".p5i"): try:
                                file_obj = open(self.param)
@@ -386,7 +387,8 @@
                                file_obj.close()
                                return None
                        except IOError:
-                                file_obj.close()
+                                if file_obj != None:
+                                        file_obj.close()
self.w_webinstall_proceed.set_sensitive(False)
                                msg = _("Error reading the p5i file.")
                                self.__error_occurred(





_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to