[maemo-commits] [maemo-commits] r9082 - in projects/haf/trunk/python: Lib debian

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Fri Jan 12 16:26:52 EET 2007
Author: osantana
Date: 2007-01-12 16:26:47 +0200 (Fri, 12 Jan 2007)
New Revision: 9082

Modified:
   projects/haf/trunk/python/Lib/webbrowser.py
   projects/haf/trunk/python/debian/changelog
Log:
- adapting the webbrowser module to use the new osso module API

Modified: projects/haf/trunk/python/Lib/webbrowser.py
===================================================================
--- projects/haf/trunk/python/Lib/webbrowser.py	2007-01-12 12:02:42 UTC (rev 9081)
+++ projects/haf/trunk/python/Lib/webbrowser.py	2007-01-12 14:26:47 UTC (rev 9082)
@@ -385,7 +385,9 @@
             raise Error("Missing OSSO Context parameter. Please, read the\n"\
                         "Python for Maemo documentation for more "\
                         "information.")
-        context.rpc_run_with_defaults('osso_browser', 'open_new_window', (url,))
+        import osso.rpc
+        rpc_handler = osso.rpc.Rpc(context)
+        rpc_handler.rpc_run_with_defaults('osso_browser', 'open_new_window', (url,))
 
 class Grail(BaseBrowser):
     # There should be a way to maintain a connection to Grail, but the
@@ -441,7 +443,7 @@
 # a console terminal or an X display to run.
 
 def register_X_browsers():
-    register("maemobrowser", MaemoBrowser())
+    register("maemobrowser", MaemoBrowser, MaemoBrowser())
 
     # The default Gnome browser
     if _iscommand("gconftool-2"):

Modified: projects/haf/trunk/python/debian/changelog
===================================================================
--- projects/haf/trunk/python/debian/changelog	2007-01-12 12:02:42 UTC (rev 9081)
+++ projects/haf/trunk/python/debian/changelog	2007-01-12 14:26:47 UTC (rev 9082)
@@ -1,5 +1,11 @@
 python2.5 (2.5.0-1osso8) unstable; urgency=low
 
+  * adapting the webbrowser module to use the new osso module API
+
+ -- Osvaldo Santana Neto <osvaldo.santana at indt.org.br>  Fri, 12 Jan 2007 10:34:00 -0300
+
+python2.5 (2.5.0-1osso8) unstable; urgency=low
+
   * fixed the "MaemoWebBroser" typo in webbrowser module.
 
  -- Osvaldo Santana Neto <osvaldo.santana at indt.org.br>  Wed, 10 Jan 2007 17:29:00 -0300


More information about the maemo-commits mailing list