Rev 292: Avoid deprecation warning for all_plugins() in gpreferences. in file:///data/jelmer/bzr-gtk/jelmer/

Jelmer Vernooij jelmer at samba.org
Tue Oct 2 18:23:54 BST 2007


At file:///data/jelmer/bzr-gtk/jelmer/

------------------------------------------------------------
revno: 292
revision-id: jelmer at samba.org-20071002172352-icn8h0b5iolowfkg
parent: jelmer at samba.org-20071002045913-iavr7ft7nntc2pwr
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: jelmer
timestamp: Tue 2007-10-02 19:23:52 +0200
message:
  Avoid deprecation warning for all_plugins() in gpreferences.
modified:
  NEWS                           news-20070325173539-3va57o99cz3o57xe-1
  preferences.py                 preferences.py-20070313153956-vcdqjrfal0wuk0vb-1
=== modified file 'NEWS'
--- a/NEWS	2007-10-02 04:59:13 +0000
+++ b/NEWS	2007-10-02 17:23:52 +0000
@@ -29,6 +29,8 @@
 
   * Add check command to setup.py. (Jelmer)
 
+  * Avoid deprecation warning for all_plugins() in gpreferences. (Jelmer)
+
 0.91.0	2007-09-24
 
  UI

=== modified file 'preferences.py'
--- a/preferences.py	2007-07-19 13:09:18 +0000
+++ b/preferences.py	2007-10-02 17:23:52 +0000
@@ -119,7 +119,7 @@
         table.set_col_spacings(6)
 
         def row_selected(tv, path, tvc):
-            p = bzrlib.plugin.all_plugins()[model[path][0]]
+            p = bzrlib.plugin.plugins()[model[path][0]]
             from inspect import getdoc
 
             for w in table.get_children():
@@ -184,7 +184,7 @@
         treeview.append_column(column)
         
         import bzrlib.plugin
-        plugins = bzrlib.plugin.all_plugins()
+        plugins = bzrlib.plugin.plugins()
         plugin_names = plugins.keys()
         plugin_names.sort()
         for name in plugin_names:




More information about the bazaar-commits mailing list