Skip to content

Commit

Permalink
minor commentary updates to braindump.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dvhart committed Aug 1, 2009
1 parent f1e3e3c commit a9655ed
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions braindump.py
Expand Up @@ -110,14 +110,11 @@ def __init__(self):

self.gst = GTDSignalTest() # DELETEME.... later :)

# FIXME: testing xml backing store, we need a full routine to get
# the correct backing store module, the right path to open, etc
# either stored in gconf or maybe in a "config" module type file...
# Initialize the GTD Tree and load the user data
GTD(None)
self.backing_store = XMLStore()
self.backing_store.load(self.config.braindump_dir)
self.backing_store.connect(GTD())
#GTD().print_tree()

##### Build Data Stores #####
# Instantiate the various GUI datastores and filters from the GTD() singleton tree
Expand Down Expand Up @@ -213,7 +210,7 @@ def __init__(self):
self.search = SearchEntry("search")
self.search.connect("changed", self.on_search_changed)

# Fixup the work_with* radio buttons as the glade directives aren't taking aeffect
# Fixup the work_with* radio buttons as the glade directives aren't taking affect
self.work_with_tasks = GUI().get_widget("work_with_tasks")
self.work_with_tasks.widget.set_property("draw-indicator", False)
self.work_with_projects = GUI().get_widget("work_with_projects")
Expand All @@ -229,8 +226,6 @@ def __init__(self):
self.on_new_project)
self.gtd_list.widget.get_selection().connect("changed", self.on_gtd_list_selection_changed)

# FIXME: we need to get gobject signals working

self.details_form = Details("details_form",
self.project_store_filter_by_realm_no_action,
self.area_store_filter_by_realm_no_action)
Expand All @@ -248,7 +243,7 @@ def __init__(self):
GUI().signal_autoconnect(self)

# Setup initial state
# FIXME: store this in gconf?
# FIXME: store this in the config
self.work_with_tasks.widget.set_active(0)
self.filter_by_state.widget.set_active(0)
self.default_project.set_active(-1)
Expand Down Expand Up @@ -297,10 +292,10 @@ def __apply_config(self):
#if self.config['filters']['filter_by_state']:
# widget = GUI().get_widget("filter_by_state")

# Ensure the callback is called, regardless of glades initial state
# Ensure the callback is called, regardless of glade's initial state
self.on_show_completed_toggled(GUI().get_widget("show_completed").widget)

# Application logic follows
##### Application logic follows #####
# Menu-item callbacks
def on_quit_activate(self, menuitem):
gtk.main_quit()
Expand Down

0 comments on commit a9655ed

Please sign in to comment.