Give relview a configuration, remove old config from preferences

svn: r14204
This commit is contained in:
Benny Malengier
2010-02-03 23:31:38 +00:00
parent 5604176e73
commit 8b6077a95e
6 changed files with 199 additions and 145 deletions

View File

@@ -1077,7 +1077,7 @@ class ListView(NavigationView):
:return: list of functions
"""
def columnpage():
def columnpage(configdialog):
return _('Columns'), ColumnOrder(self._config, self.COLUMN_NAMES,
self.set_column_order,
tree=self.type_list()==LISTTREE)

View File

@@ -392,7 +392,7 @@ class PageView(DbGUIElement):
def init_config(self):
"""
If you need a view with a config, then call this method in the
build_tree method. It will set up a config file for the
build_widget or __init__ method. It will set up a config file for the
view, and use CONFIGSETTINGS to set the config defaults.
The config is later accessbile via self._config
So you can do