[conduit/config-google] Ensure the choices is initialized in the google contacts dataprovider configuration



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]