[conduit/config-google] Ensure the choices is initialized in the google contacts dataprovider configuration
- From: John Stowers <jstowers src gnome org>
- To: svn-commits-list gnome org
- Subject: [conduit/config-google] Ensure the choices is initialized in the google contacts dataprovider configuration
- Date: Sun, 17 May 2009 00:42:17 -0400 (EDT)
commit 5c056c80ec82121f74a8d3e0f04aa6c3b4b403d7
Author: John Stowers <john stowers gmail com>
Date: Sun May 17 16:41:57 2009 +1200
Ensure the choices is initialized in the google contacts dataprovider configuration
---
conduit/modules/GoogleModule/GoogleModule.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/conduit/modules/GoogleModule/GoogleModule.py b/conduit/modules/GoogleModule/GoogleModule.py
index 2d19855..78f4cab 100644
--- a/conduit/modules/GoogleModule/GoogleModule.py
+++ b/conduit/modules/GoogleModule/GoogleModule.py
@@ -994,6 +994,8 @@ class ContactsTwoWay(_GoogleBase, DataProvider.TwoWay):
config.add_section("Contacts group")
if self.selectedGroup:
choices = [(self.selectedGroup, self.selectedGroup.get_name())]
+ else:
+ choices = []
self.group_config = config.add_item("Group", "combo",
config_name = "selectedGroup",
initial_value_callback = lambda item: self.selectedGroup,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]