bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def populate(): doc,root = cleanxml.emptydoc("project") #Task 0@1: Getting started with GTG title1 = _("Getting started with GTG") text1 = _("""Welcome to Getting Things Gnome!, your new task manager.
def populate(): doc,root = cleanxml.emptydoc("project") #Task 0@1: Getting started with GTG title1 = _("Getting started with GTG") text1 = _("""Welcome to Getting Things Gnome!, your new task manager.
463,700
def populate(): doc,root = cleanxml.emptydoc("project") #Task 0@1: Getting started with GTG title1 = _("Getting started with GTG") text1 = _("""Welcome to Getting Things Gnome!, your new task manager.
def populate(): doc,root = cleanxml.emptydoc("project") #Task 0@1: Getting started with GTG title1 = _("Getting started with GTG") text1 = _("""Welcome to Getting Things Gnome!, your new task manager.
463,701
def on_nonworkviewtag_toggled(self, widget): self.set_target_cursor() tags = self.get_selected_tags()[0] nonworkview_item = self.nonworkviewtag_checkbox #We must inverse because the tagstore has True #for tasks that are not in workview (and also convert to string) toset = str(not nonworkview_item.get_active()) if len(t...
def on_nonworkviewtag_toggled(self, widget): self.set_target_cursor() tags = self.get_selected_tags()[0] nonworkview_item = self.nonworkviewtag_checkbox #We must inverse because the tagstore has True #for tasks that are not in workview (and also convert to string) toset = str(not nonworkview_item.get_active()) if len(t...
463,702
def main(options=None, args=None): # Debugging subsystem initialization if options.debug: Log.setLevel(logging.DEBUG) Log.debug("Debug output enabled.") config = CoreConfig() check_instance(config.DATA_DIR) backends_list = config.get_backends_list() # Load data store ds = DataStore() for backend_dic in backends_list...
def main(options=None, args=None): # Debugging subsystem initialization if options.debug: Log.setLevel(logging.DEBUG) Log.debug("Debug output enabled.") config = CoreConfig() check_instance(config.DATA_DIR) backends_list = config.get_backends_list() # Load data store ds = DataStore() for backend_dic in backends_list...
463,703
def _tag_event(self, tag, view, ev, _iter, text, anchor,typ): #pylint: disable-msg=W0613 _type = ev.type if _type == gtk.gdk.MOTION_NOTIFY: return elif _type in [gtk.gdk.BUTTON_PRESS, gtk.gdk.BUTTON_RELEASE]: button = ev.button cursor = gtk.gdk.Cursor(gtk.gdk.HAND2) if _type == gtk.gdk.BUTTON_RELEASE: if typ == "subtas...
def _tag_event(self, tag, view, ev, _iter, text, anchor,typ): #pylint: disable-msg=W0613 _type = ev.type if _type == gtk.gdk.MOTION_NOTIFY: return elif _type in [gtk.gdk.BUTTON_PRESS, gtk.gdk.BUTTON_RELEASE]: button = ev.button cursor = gtk.gdk.Cursor(gtk.gdk.HAND2) if _type == gtk.gdk.BUTTON_RELEASE: if typ == "subtas...
463,704
def on_add_new_tag(self, widget=None, tid=None): if not tid: self.tids_to_addtag = self.get_selected_tasks() else: self.tids_to_addtag = [tid] if len(self.tids_to_addtag) > 0: #TODO: Apply to subtasks? #TODO: Access via hotkey #TODO: Autocomplete #TODO: Multiple tags~ #TODO: Menu icon? #TODO: ???????????????????????? ...
def on_add_new_tag(self, widget=None, tid=None): if not tid: self.tids_to_addtag = self.get_selected_tasks() else: self.tids_to_addtag = [tid] if len(self.tids_to_addtag) > 0: #TODO: Apply to subtasks? #TODO: Access via hotkey #TODO: Autocomplete #TODO: Multiple tags~ #TODO: Menu icon? #TODO: ???????????????????????? ...
463,705
def on_addtag_confirm(self, widget=None): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") if not tag_entry.get_text()[0] == "@": new_tagname = "@" + tag_entry.get_text() else: new_tagname = tag_entry.get_text() #TODO: What if I _want_ the new tag to be @@somethin...
def on_addtag_confirm(self, widget=None): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") if not tag_entry.get_text()[0] == "@": new_tagname = "@" + tag_entry.get_text() else: new_tagname = tag_entry.get_text() #TODO: What if I _want_ the new tag to be @@somethin...
463,706
def on_addtag_confirm(self, widget=None): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") if not tag_entry.get_text()[0] == "@": new_tagname = "@" + tag_entry.get_text() else: new_tagname = tag_entry.get_text() #TODO: What if I _want_ the new tag to be @@somethin...
defon_addtag_confirm(self,widget=None):tag_entry=self.builder.get_object("tag_entry")addtag_dialog=self.builder.get_object("TaskAddTag")ifnottag_entry.get_text()[0]=="@":new_tagname="@"+tag_entry.get_text()else:new_tagname=tag_entry.get_text()#TODO:WhatifI_want_thenewtagtobe@@something?#TODO:Also--makesuretocomplainift...
463,707
def on_addtag_confirm(self, widget=None): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") if not tag_entry.get_text()[0] == "@": new_tagname = "@" + tag_entry.get_text() else: new_tagname = tag_entry.get_text() #TODO: What if I _want_ the new tag to be @@somethin...
def on_addtag_confirm(self, widget=None): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") if not tag_entry.get_text()[0] == "@": new_tagname = "@" + tag_entry.get_text() else: new_tagname = tag_entry.get_text() #TODO: What if I _want_ the new tag to be @@somethin...
463,708
def __get_rtm_task_attribute(self, attr): if hasattr(self.task, 'task'): if hasattr(self.task.task, 'list'): return getattr(self.task.task.list, attr) elif type(self.task.task) == list: return getattr(self.task.task[len(self.task.task) - 1], attr) else: return getattr(self.task.task, attr) else: if type(self.task) == l...
def __get_rtm_task_attribute(self, attr): if hasattr(self.task, 'task'): if hasattr(self.task.task, 'list'): return getattr(self.task.task.list, attr) elif type(self.task.task) == list: return getattr(self.task.task[len(self.task.task) - 1], attr) else: return getattr(self.task.task, attr) else: if type(self.task) == l...
463,709
def deactivate(self, plugin_api): plugin_api.remove_menu_item(self.menu_item) plugin_api.remove_toolbar_item(self.tb_button) plugin_api.remove_toolbar_item(self.separator) self.txtImport = None
def deactivate(self, plugin_api): plugin_api.remove_menu_item(self.menu_item) plugin_api.remove_task_toolbar_item(self.tb_button) plugin_api.remove_task_toolbar_item(self.separator) self.txtImport = None
463,710
def on_get_value(self, node, column):
def on_get_value(self, node, column):
463,711
def select_backend(self, backend_id = None): ''' Selects the backend corresponding to backend_id. If backend_id is none, refreshes the current configuration panel.
def select_backend(self, backend_id = None): ''' Selects the backend corresponding to backend_id. If backend_id is none, refreshes the current configuration panel.
463,712
def select_backend(self, backend_id = None): ''' Selects the backend corresponding to backend_id. If backend_id is none, refreshes the current configuration panel.
def select_backend(self, backend_id = None): ''' Selects the backend corresponding to backend_id. If backend_id is none, refreshes the current configuration panel.
463,713
def open_task_editor(self, tid): self.ui.open_task(tid)
def open_task_editor(self, tid): self.ui.open_task(tid)
463,714
def is_displayed(self,tid): task = self.req.get_task(tid) if not task: return False else: tags = [self.tname] tags += self.req.get_tag(self.tname).get_children() return task.has_tags(tags)
def is_displayed(self,tid): task = self.req.get_task(tid) if not task: return False else: tags = [self.tname] tags += self.req.get_tag(self.tname).get_children() return task.has_tags(tags)
463,715
def active(self,task): """ Filter of tasks which are active """ #FIXME: we should also handle unactive tags return task.get_status() == self.STA_ACTIVE
def active(self,task): """ Filter of tasks which are active """ #FIXME: we should also handle unactive tags return task.get_status() == Task.STA_ACTIVE
463,716
def closed(self,task): """ Filter of tasks which are closed """ return task.get_status() in [self.STA_DISMISSED,self.STA_DONE]
def closed(self,task): """ Filter of tasks which are closed """ return task.get_status() in [Task.STA_DISMISSED, Task.STA_DONE]
463,717
def on_get_value(self, rowref, column): node = self.tree.get_node_for_rowref(rowref) if not node: return None else: task = node.get_obj() if column == COL_TID: return task.get_id() elif column == COL_OBJ: return task elif column == COL_TITLE: return saxutils.escape(task.get_title()) elif column == COL_SDATE: return s...
def on_get_value(self, rowref, column): node = self.tree.get_node_for_rowref(rowref) if not node: return None else: task = node.get_obj() if column == COL_TID: return task.get_id() elif column == COL_OBJ: return task elif column == COL_TITLE: return saxutils.escape(task.get_title()) elif column == COL_SDATE: return s...
463,718
def on_get_value(self, rowref, column): node = self.tree.get_node_for_rowref(rowref) if not node: return None else: task = node.get_obj() if column == COL_TID: return task.get_id() elif column == COL_OBJ: return task elif column == COL_TITLE: return saxutils.escape(task.get_title()) elif column == COL_SDATE: return s...
def on_get_value(self, rowref, column): node = self.tree.get_node_for_rowref(rowref) if not node: return None else: task = node.get_obj() if column == COL_TID: return task.get_id() elif column == COL_OBJ: return task elif column == COL_TITLE: return saxutils.escape(task.get_title()) elif column == COL_SDATE: return s...
463,719
def on_get_value(self, rowref, column): node = self.tree.get_node_for_rowref(rowref) if not node: return None else: task = node.get_obj() if column == COL_TID: return task.get_id() elif column == COL_OBJ: return task elif column == COL_TITLE: return saxutils.escape(task.get_title()) elif column == COL_SDATE: return s...
def on_get_value(self, rowref, column): node = self.tree.get_node_for_rowref(rowref) if not node: return None else: task = node.get_obj() if column == COL_TID: return task.get_id() elif column == COL_OBJ: return task elif column == COL_TITLE: return saxutils.escape(task.get_title()) elif column == COL_SDATE: return s...
463,720
def on_get_value(self, rowref, column): node = self.tree.get_node_for_rowref(rowref) if not node: return None else: task = node.get_obj() if column == COL_TID: return task.get_id() elif column == COL_OBJ: return task elif column == COL_TITLE: return saxutils.escape(task.get_title()) elif column == COL_SDATE: return s...
def on_get_value(self, rowref, column): node = self.tree.get_node_for_rowref(rowref) if not node: return None else: task = node.get_obj() if column == COL_TID: return task.get_id() elif column == COL_OBJ: return task elif column == COL_TITLE: return saxutils.escape(task.get_title()) elif column == COL_SDATE: return s...
463,721
def on_get_value(self, rowref, column): node = self.tree.get_node_for_rowref(rowref) if not node: return None else: task = node.get_obj() if column == COL_TID: return task.get_id() elif column == COL_OBJ: return task elif column == COL_TITLE: return saxutils.escape(task.get_title()) elif column == COL_SDATE: return s...
def on_get_value(self, rowref, column): node = self.tree.get_node_for_rowref(rowref) if not node: return None else: task = node.get_obj() if column == COL_TID: return task.get_id() elif column == COL_OBJ: return task elif column == COL_TITLE: return saxutils.escape(task.get_title()) elif column == COL_SDATE: return s...
463,722
def on_get_value(self, rowref, column): node = self.tree.get_node_for_rowref(rowref) if not node: return None else: task = node.get_obj() if column == COL_TID: return task.get_id() elif column == COL_OBJ: return task elif column == COL_TITLE: return saxutils.escape(task.get_title()) elif column == COL_SDATE: return s...
def on_get_value(self, rowref, column): node = self.tree.get_node_for_rowref(rowref) if not node: return None else: task = node.get_obj() if column == COL_TID: return task.get_id() elif column == COL_OBJ: return task elif column == COL_TITLE: return saxutils.escape(task.get_title()) elif column == COL_SDATE: return s...
463,723
def lp_login(): cachedir = os.path.expanduser('~/.cache/launchpadlib/') if not os.path.isdir(cachedir): os.makedirs(cachedir) creddir = os.path.expanduser("~/.cache/lp_credentials") if not os.path.isdir(creddir): os.makedirs(creddir) os.chmod(creddir, 0700) try: credfile = open(os.path.join(creddir, 'close_launchpad_bu...
def lp_login(): cachedir = os.path.expanduser('~/.cache/launchpadlib/') if not os.path.isdir(cachedir): os.makedirs(cachedir) creddir = os.path.expanduser("~/.cache/lp_credentials") if not os.path.isdir(creddir): os.makedirs(creddir) os.chmod(creddir, 0700) try: credfile = open(os.path.join(creddir, 'close_launchpad_bu...
463,724
def new(*args, **kws): with SignalCatcher(self, generator, signal_name) \ as [signal_catched_event, signal_arguments]: function(*args, **kws) signal_catched_event.wait() self.assertEqual(expected, signal_arguments) return None
def new(*args, **kws): with SignalCatcher(self, generator, signal_name) \ as [signal_catched_event, signal_arguments]: function(*args, **kws) signal_catched_event.wait() for e in expected: self.assert_(e in signal_arguments[0]) return None
463,725
def test_add_remove_node(self): """ DISABLED (?) """ return view = self.tree.get_viewtree(refresh=True) node = DummyNode('temp') node.add_color('blue') self.assertNodeModifiedInviewExp(['0'], self.assertNodeAddedInviewExp([node.get_id()],\ self.tree.add_node))(node, parent_id = '0') shouldbe = self.blue_nodes + 1 total...
def test_add_remove_node(self): """ Test the adding and removal of nodes """ view = self.tree.get_viewtree(refresh=True) node = DummyNode('temp') node.add_color('blue') expected_arg = ['temp'] self.assertNodeModifiedInviewExp(['0'], self.assertNodeAddedInviewExp([node.get_id()],\ self.tree.add_node))(node, parent_id = ...
463,726
def test_add_remove_node(self): """ DISABLED (?) """ return view = self.tree.get_viewtree(refresh=True) node = DummyNode('temp') node.add_color('blue') self.assertNodeModifiedInviewExp(['0'], self.assertNodeAddedInviewExp([node.get_id()],\ self.tree.add_node))(node, parent_id = '0') shouldbe = self.blue_nodes + 1 total...
def test_add_remove_node(self): """ DISABLED (?) """ return view = self.tree.get_viewtree(refresh=True) node = DummyNode('temp') node.add_color('blue') self.assertNodeModifiedInviewExp(['0'], self.assertNodeAddedInviewExp(expected_arg,\ self.tree.add_node))(node, parent_id = '0') shouldbe = self.blue_nodes + 1 total = ...
463,727
def test_modifying_node(self): """ DISABLED (?) """ return viewblue = self.tree.get_viewtree(refresh=False) viewblue.apply_filter('blue') viewred = self.tree.get_viewtree(refresh=False) viewred.apply_filter('red') node = DummyNode('temp') node.add_color('blue') #Do you see : we are modifying a child self.assertNodeModi...
def test_modifying_node(self): """ Modifying a node and see if the change is reflected in filters """ viewblue = self.tree.get_viewtree(refresh=False) viewblue.apply_filter('blue') viewred = self.tree.get_viewtree(refresh=False) viewred.apply_filter('red') node = DummyNode('temp') node.add_color('blue') #Do you see : w...
463,728
def test_removing_parent(self): """ DISABLED (?) """ """Test behavior of node when its parent goes away.
def test_removing_parent(self): """Test behavior of node when its parent goes away.
463,729
def test_removing_parent(self): """ DISABLED (?) """ """Test behavior of node when its parent goes away.
def test_removing_parent(self): """ DISABLED (?) """ """Test behavior of node when its parent goes away.
463,730
def test_viewtree_node_all_children(self): view = self.tree.get_viewtree(refresh=True) self.assertEqual(0,len(view.node_all_children('0'))) """Test node_all_children() for TreeView.
def test_viewtree_node_all_children(self): view = self.tree.get_viewtree(refresh=True) self.assertEqual(0,len(view.node_all_children('0'))) """Test node_all_children() for TreeView.
463,731
def test_flat_filters(self): view = self.tree.get_viewtree(refresh=False) """FIXME: Document me please """ view.apply_filter('flatgreen') #all green nodes should be visibles self.assertEqual(self.green_nodes,view.get_n_nodes()) i = 0 nodes = [] #we check that the paths are on the root while i < self.green_nodes: nid = ...
def test_flat_filters(self): view = self.tree.get_viewtree(refresh=False) """Test a flat filter. Green nodes are in "stairs" (each one being the child of another) By applying a filter with the flat properties, we test that all the nodes are now seen "flately". """ view.apply_filter('flatgreen') #all green nodes should...
463,732
def test_name(self): # The first argument to the Tag constructor is the name, which you can # get with get_name(). tag = Tag('foo') self.assertEqual('foo', tag.get_name())
def test_name(self): # The first argument to the Tag constructor is the name, which you can # get with get_name(). tag = Tag('foo', self.req) self.assertEqual('foo', tag.get_name())
463,733
def test_name_is_attribute(self): # The name of the tag is also stored as an attribute. tag = Tag('foo') self.assertEqual('foo', tag.get_attribute('name'))
def test_name_is_attribute(self): # The name of the tag is also stored as an attribute. tag = Tag('foo', self.req) self.assertEqual('foo', tag.get_attribute('name'))
463,734
def test_missing_attribute_returns_none(self): # If get_attribute is called for an attribute that doesn't exist, it # returns None. tag = Tag('whatever') result = tag.get_attribute('no-such-attribute') self.assertEqual(None, result)
def test_missing_attribute_returns_none(self): # If get_attribute is called for an attribute that doesn't exist, it # returns None. tag = Tag('whatever', self.req) result = tag.get_attribute('no-such-attribute') self.assertEqual(None, result)
463,735
def test_missing_attribute_returns_none(self): # If get_attribute is called for an attribute that doesn't exist, it # returns None. tag = Tag('whatever') result = tag.get_attribute('no-such-attribute') self.assertEqual(None, result)
def test_missing_attribute_returns_none(self): # If get_attribute is called for an attribute that doesn't exist, it # returns None. tag = Tag('whatever') result = tag.get_attribute('no-such-attribute') self.assertEqual(None, result)
463,736
def test_set_then_get_attribute(self): # Attributes set with set_attribute can be retrieved with # get_attribute. tag = Tag('whatever', lambda: None) tag.set_attribute('new-attribute', 'value') result = tag.get_attribute('new-attribute') self.assertEqual('value', result)
def test_set_then_get_attribute(self): # Attributes set with set_attribute can be retrieved with # get_attribute. tag = Tag('whatever', self.req) tag.set_attribute('new-attribute', 'value') result = tag.get_attribute('new-attribute') self.assertEqual('value', result)
463,737
def test_set_non_str_attribute_casts_to_string(self): # If the value of the attribute passed to set_attribute is not a # string, it's cast to a string. tag = Tag('whatever', lambda: None) tag.set_attribute('new-attribute', 42) result = tag.get_attribute('new-attribute') self.assertEqual('42', result)
def test_set_non_str_attribute_casts_to_string(self): # If the value of the attribute passed to set_attribute is not a # string, it's cast to a string. tag = Tag('whatever', self.req) tag.set_attribute('new-attribute', 42) result = tag.get_attribute('new-attribute') self.assertEqual('42', result)
463,738
def test_get_all_attributes_initial(self): # Initially, a Tag has only the name attribute. tag = Tag('foo') self.assertEqual(['name'], tag.get_all_attributes())
def test_get_all_attributes_initial(self): # Initially, a Tag has only the name attribute. tag = Tag('foo', self.req) self.assertEqual(['name'], tag.get_all_attributes())
463,739
def test_get_all_attributes_after_setting(self): # After attributes are set, get_all_attributes includes those # attributes. The order is not guaranteed. tag = Tag('foo', lambda: None) tag.set_attribute('bar', 'baz') self.assertEqual(set(['name', 'bar']), set(tag.get_all_attributes()))
def test_get_all_attributes_after_setting(self): # After attributes are set, get_all_attributes includes those # attributes. The order is not guaranteed. tag = Tag('foo', self.req) tag.set_attribute('bar', 'baz') self.assertEqual(set(['name', 'bar']), set(tag.get_all_attributes()))
463,740
def test_get_all_but_name(self): # If 'butname' is True, then exclude the 'name' attribute. tag = Tag('foo', lambda: None) self.assertEqual([], tag.get_all_attributes(butname=True)) tag.set_attribute('bar', 'baz') self.assertEqual(['bar'], tag.get_all_attributes(butname=True))
def test_get_all_but_name(self): # If 'butname' is True, then exclude the 'name' attribute. tag = Tag('foo', self.req) self.assertEqual([], tag.get_all_attributes(butname=True)) tag.set_attribute('bar', 'baz') self.assertEqual(['bar'], tag.get_all_attributes(butname=True))
463,741
def test_str(self): # str(tag) is 'Tag: <name>' tag = Tag('foo') self.assertEqual('Tag: foo', str(tag))
def test_str(self): # str(tag) is 'Tag: <name>' tag = Tag('foo', self.req) self.assertEqual('Tag: foo', str(tag))
463,742
def test_set_name_attribute_does_nothing(self): # The 'name' attribute is set by the constructor. After it is set, it # cannot be changed with further calls to set_attribute. tag = Tag('old', lambda: None) tag.set_attribute('name', 'new') self.assertEqual('old', tag.get_name()) self.assertEqual('old', tag.get_attribute...
def test_set_name_attribute_does_nothing(self): # The 'name' attribute is set by the constructor. After it is set, it # cannot be changed with further calls to set_attribute. tag = Tag('old', self.req) tag.set_attribute('name', 'new') self.assertEqual('old', tag.get_name()) self.assertEqual('old', tag.get_attribute('na...
463,743
def test_save_not_called_on_construction(self): # The save callback isn't called by the constructor, despite the fact # that it sets the name attribute. save_calls = [] Tag('old', lambda: save_calls.append(None)) self.assertEqual(0, len(save_calls))
def test_save_not_called_on_construction(self): # The save callback isn't called by the constructor, despite the fact # that it sets the name attribute. save_calls = [] Tag('old', self.req) self.assertEqual(0, len(save_calls))
463,744
def test_set_name_doesnt_call_save(self): # Setting the name attribute doesn't call save. save_calls = [] tag = Tag('old', lambda: save_calls.append(None)) tag.set_attribute('name', 'new') self.assertEqual(0, len(save_calls))
def test_set_name_doesnt_call_save(self): # Setting the name attribute doesn't call save. save_calls = [] tag = Tag('old', self.req) tag.set_attribute('name', 'new') self.assertEqual(0, len(save_calls))
463,745
def test_set_name_doesnt_call_save(self): # Setting the name attribute doesn't call save. save_calls = [] tag = Tag('old', lambda: save_calls.append(None)) tag.set_attribute('name', 'new') self.assertEqual(0, len(save_calls))
deftest_set_name_doesnt_call_save(self):#Settingthenameattributedoesn'tcallsave.save_calls=[]tag=Tag('old',lambda:save_calls.append(None))tag.set_attribute('name','new')self.assertEqual(0,len(save_calls))
463,746
def test_speed(self): ''' Performance tests. Patches that reduce performance too much are not acceptable ''' view = self.tree.get_viewtree(refresh = False) test = TreeTester(view) calls = [(self.tree.add_node, "ADDING"), (self.tree.refresh_node, "UPDATING"), (self.tree.del_node, "REMOVING")] for call, name in calls: st...
def test_speed(self): ''' Performance tests. Patches that reduce performance too much are not acceptable ''' view = self.tree.get_viewtree(refresh = False) test = TreeTester(view) calls = [(self.tree.add_node, "ADDING"), (self.tree.refresh_node, "UPDATING"), (self.tree.del_node, "REMOVING")] for call, name in calls: st...
463,747
def _init_signal_connections(self):
def _init_signal_connections(self):
463,748
def on_defer_to_tomorrow(self, widget): self.update_start_date(widget, "tomorrow")
def on_schedule_for_tomorrow(self, widget): self.update_start_date(widget, "tomorrow")
463,749
def on_defer_to_next_week(self, widget): self.update_start_date(widget, "next week")
def on_schedule_for_next_week(self, widget): self.update_start_date(widget, "next week")
463,750
def on_defer_to_next_month(self, widget): self.update_start_date(widget, "next month")
def on_schedule_for_next_month(self, widget): self.update_start_date(widget, "next month")
463,751
def on_defer_to_next_year(self, widget): self.update_start_date(widget, "next year")
def on_schedule_for_next_year(self, widget): self.update_start_date(widget, "next year")
463,752
def onTaskOpened(self, plugin_api): # add a item (button) to the ToolBar tb_Taskicon = gtk.Image() tb_Taskicon.set_from_icon_name('mail-send', 32) tb_Taskicon.show() tb_Taskbutton = gtk.ToolButton(tb_Taskicon) tb_Taskbutton.set_label("Send via email") tb_Taskbutton.connect('clicked', self.onTbTaskButton, plugin_api) se...
def onTaskOpened(self, plugin_api): # add a item (button) to the ToolBar tb_Taskicon = gtk.Image() tb_Taskicon.set_from_icon_name('mail-send', 32) tb_Taskicon.show() tb_Taskbutton = gtk.ToolButton(tb_Taskicon) tb_Taskbutton.set_label("Send via email") tb_Taskbutton.connect('clicked', self.onTbTaskButton, plugin_api) se...
463,753
def deactivate(self, plugin_api): #everything should be removed, in case a task is currently opened plugin_api.remove_task_toolbar_item(self.task_separator) plugin_api.remove_task_toolbar_item(self.tb_Taskbutton)
def deactivate(self, plugin_api): #everything should be removed, in case a task is currently opened plugin_api.remove_task_toolbar_item(self.task_separator) plugin_api.remove_task_toolbar_item(self.tb_Taskbutton)
463,754
def insert_newtask(self,fitera=None) : if not fitera : fitera = self.get_insert() #First, find a line without subtask line = fitera.get_line() #Avoid the title at all cost if line <= 0 : line = 1 startl = self.buff.get_iter_at_line(line) itera = None while not itera : found = True for t in startl.get_tags() : if t.get_...
def insert_newtask(self,fitera=None) : if not fitera : fitera = self.get_insert() #First, find a line without subtask line = fitera.get_line() #Avoid the title at all cost if line <= 0 : line = 1 startl = self.buff.get_iter_at_line(line) itera = None while not itera : found = True for t in startl.get_tags() : if t.get_...
463,755
def insert_newtask(self,fitera=None) : if not fitera : fitera = self.get_insert() #First, find a line without subtask line = fitera.get_line() #Avoid the title at all cost if line <= 0 : line = 1 startl = self.buff.get_iter_at_line(line) itera = None while not itera : found = True for t in startl.get_tags() : if t.get_...
def insert_newtask(self,fitera=None) : if not fitera : fitera = self.get_insert() #First, find a line without subtask line = fitera.get_line() #Avoid the title at all cost if line <= 0 : line = 1 startl = self.buff.get_iter_at_line(line) itera = None while not itera : found = True for t in startl.get_tags() : if t.get_...
463,756
def __init__(self,req): self.req = req self.tids_todelete = [] # Load window tree self.builder = gtk.Builder() self.builder.add_from_file(ViewConfig.DELETE_GLADE_FILE) signals = { "on_delete_confirm": self.on_delete_confirm, "on_delete_cancel": lambda x: x.hide,} self.builder.connect_signals(signals)
MAXIMUM_TIDS_TO_SHOW = 20 def __init__(self, req): self.req = req self.tids_todelete = [] # Load window tree self.builder = gtk.Builder() self.builder.add_from_file(ViewConfig.DELETE_GLADE_FILE) signals = { "on_delete_confirm": self.on_delete_confirm, "on_delete_cancel": lambda x: x.hide,} self.builder.connect_signa...
463,757
def get_deleted_path(self,id): toreturn = None print "old paths are : %s" %self.old_paths if self.old_paths.has_key(id): toreturn = self.old_paths.pop(id) return toreturn
def get_deleted_path(self,id): toreturn = None Log.debug( "old paths are : %s" %self.old_paths ) if self.old_paths.has_key(id): toreturn = self.old_paths.pop(id) return toreturn
463,758
def set_parameters(self,dic): self.dic = dic
def def get_all_descendant_tags(self, tname): tags = [tname] tt = self.req.get_tag(tname) if tt: children = tt.get_children() tags.extend(children) for child_tag in children: tags.extend(self.get_all_descendant_tags(child_tag)) return tags set_parameters(self,dic): def get_all_descendant_tags(self, tname): tags = [tna...
463,759
def is_displayed(self,tid): task = self.req.get_task(tid) value = True if not task: value = False else: tags = [self.tname] tt = self.req.get_tag(self.tname) if tt: tags += tt.get_children() value = task.has_tags(tags) if 'negate' in self.dic and self.dic['negate']: value = not value return value
def is_displayed(self,tid): task = self.req.get_task(tid) value = True if not task: value = False else: tags = self.get_all_descendant_tags(self.tname) value = task.has_tags(tags) if 'negate' in self.dic and self.dic['negate']: value = not value return value
463,760
def activate(self, plugin_api): self.plugin_api = plugin_api #Create the menu self.create_static_menu() #initialize the right notification thing if indicator_capable: #Create an indicator icon self.ind = appindicator.Indicator ("gtg", "indicator-messages", appindicator.CATEGORY_APPLICATION_STATUS) self.ind.set_status ...
def activate(self, plugin_api): self.plugin_api = plugin_api #Create the menu self.create_static_menu() #initialize the right notification thing if indicator_capable: #Create an indicator icon self.ind = appindicator.Indicator ("gtg", \ "indicator-messages", \ appindicator.CATEGORY_APPLICATION_STATUS) self.ind.set_sta...
463,761
def activate(self, plugin_api): self.plugin_api = plugin_api #Create the menu self.create_static_menu() #initialize the right notification thing if indicator_capable: #Create an indicator icon self.ind = appindicator.Indicator ("gtg", "indicator-messages", appindicator.CATEGORY_APPLICATION_STATUS) self.ind.set_status ...
def activate(self, plugin_api): self.plugin_api = plugin_api #Create the menu self.create_static_menu() #initialize the right notification thing if indicator_capable: #Create an indicator icon self.ind = appindicator.Indicator ("gtg", "indicator-messages", appindicator.CATEGORY_APPLICATION_STATUS) self.ind.set_status ...
463,762
def activate(self, plugin_api): self.plugin_api = plugin_api #Create the menu self.create_static_menu() #initialize the right notification thing if indicator_capable: #Create an indicator icon self.ind = appindicator.Indicator ("gtg", "indicator-messages", appindicator.CATEGORY_APPLICATION_STATUS) self.ind.set_status ...
def activate(self, plugin_api): self.plugin_api = plugin_api #Create the menu self.create_static_menu() #initialize the right notification thing if indicator_capable: #Create an indicator icon self.ind = appindicator.Indicator ("gtg", "indicator-messages", appindicator.CATEGORY_APPLICATION_STATUS) self.ind.set_status ...
463,763
def minimize(self, widget, plugin_api): if self.minimized: self.view_main_window.set_active(True) plugin_api.show_window() self.minimized = not self.minimized else: self.view_main_window.set_active(False) plugin_api.hide_window() self.minimized = not self.minimized
def minimize(self, widget, plugin_api): if self.minimized: self.view_main_window.set_active(True) plugin_api.show_window() self.minimized = False else: self.view_main_window.set_active(False) plugin_api.hide_window() self.minimized = not self.minimized
463,764
def minimize(self, widget, plugin_api): if self.minimized: self.view_main_window.set_active(True) plugin_api.show_window() self.minimized = not self.minimized else: self.view_main_window.set_active(False) plugin_api.hide_window() self.minimized = not self.minimized
def minimize(self, widget, plugin_api): if self.minimized: self.view_main_window.set_active(True) plugin_api.show_window() self.minimized = True self.view_main_window_signal = self.view_main_window.connect(\ 'activate', self.minimize, self.plugin_api) else: self.view_main_window.set_active(False) plugin_api.hide_window...
463,765
def create_static_menu(self): #Tasks_in_menu will hold the menu_items in the menu self.tasks_in_menu = dict() self.task_separator = None self.menu = gtk.Menu() #view in main window checkbox self.view_main_window = gtk.CheckMenuItem(_("_View Main Window")) self.view_main_window.set_active(not self.minimized) self.view_m...
def create_static_menu(self): #Tasks_in_menu will hold the menu_items in the menu self.tasks_in_menu = dict() self.task_separator = None self.menu = gtk.Menu() #view in main window checkbox self.view_main_window = gtk.CheckMenuItem(_("_View Main Window")) self.view_main_window.set_active(not self.minimized) self.view_m...
463,766
def on_icon_popup(self, icon, button, timestamp, menu=None): #appindicator handles menus transparently if not indicator_capable: menu.popup(None, None, gtk.status_icon_position_menu, button, timestamp, icon)
def on_icon_popup(self, icon, button, timestamp, menu=None): #appindicator handles menus transparently if not indicator_capable: menu.popup(None, None, gtk.status_icon_position_menu, button, timestamp, icon)
463,767
def _init_tag_completion(self): self.tag_completion = gtk.EntryCompletion() self.tag_completion.set_model(self.tag_model) self.tag_completion.set_text_column(1) self.tag_completion.set_inline_completion(True) self.tag_completion.set_inline_selection(True)
def _init_tag_completion(self): self.tag_completion = gtk.EntryCompletion() self.tag_completion.set_model(self.tag_model) self.tag_completion.set_text_column(2) self.tag_completion.set_inline_completion(True) self.tag_completion.set_inline_selection(True)
463,768
def on_add_new_tag(self, widget=None, tid=None, tryagain = False): if not tid: self.tids_to_addtag = self.get_selected_tasks() else: self.tids_to_addtag = [tid]
def on_add_new_tag(self, widget=None, tid=None, tryagain = False): if not tid: self.tids_to_addtag = self.get_selected_tasks() else: self.tids_to_addtag = [tid]
463,769
def on_add_new_tag(self, widget=None, tid=None, tryagain = False): if not tid: self.tids_to_addtag = self.get_selected_tasks() else: self.tids_to_addtag = [tid]
def on_add_new_tag(self, widget=None, tid=None, tryagain = False): if not tid: self.tids_to_addtag = self.get_selected_tasks() else: self.tids_to_addtag = [tid]
463,770
def on_addtag_confirm(self, widget): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") apply_to_subtasks = self.builder.get_object("apply_to_subtasks") addtag_error = False entry_text = tag_entry.get_text() entry_text = entry_text.strip() # Complain if the text entry...
def on_addtag_confirm(self, widget): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") apply_to_subtasks = self.builder.get_object("apply_to_subtasks") addtag_error = False entry_text = tag_entry.get_text() entry_text = entry_text.strip() # Complain if the text entry...
463,771
def on_addtag_confirm(self, widget): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") apply_to_subtasks = self.builder.get_object("apply_to_subtasks") addtag_error = False entry_text = tag_entry.get_text() entry_text = entry_text.strip() # Complain if the text entry...
def on_addtag_confirm(self, widget): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") apply_to_subtasks = self.builder.get_object("apply_to_subtasks") addtag_error = False entry_text = tag_entry.get_text() entry_text = entry_text.strip() # Complain if the text entry...
463,772
def on_addtag_confirm(self, widget): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") apply_to_subtasks = self.builder.get_object("apply_to_subtasks") addtag_error = False entry_text = tag_entry.get_text() entry_text = entry_text.strip() # Complain if the text entry...
def on_addtag_confirm(self, widget): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") apply_to_subtasks = self.builder.get_object("apply_to_subtasks") addtag_error = False entry_text = tag_entry.get_text() entry_text = entry_text.strip() # Complain if the text entry...
463,773
def on_addtag_confirm(self, widget): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") apply_to_subtasks = self.builder.get_object("apply_to_subtasks") addtag_error = False entry_text = tag_entry.get_text() entry_text = entry_text.strip() # Complain if the text entry...
def on_addtag_confirm(self, widget): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") apply_to_subtasks = self.builder.get_object("apply_to_subtasks") addtag_error = False entry_text = tag_entry.get_text() entry_text = entry_text.strip() # Complain if the text entry...
463,774
def on_addtag_confirm(self, widget): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") apply_to_subtasks = self.builder.get_object("apply_to_subtasks") addtag_error = False entry_text = tag_entry.get_text() entry_text = entry_text.strip() # Complain if the text entry...
def on_addtag_confirm(self, widget): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") apply_to_subtasks = self.builder.get_object("apply_to_subtasks") addtag_error = False entry_text = tag_entry.get_text() entry_text = entry_t...
463,775
def on_addtag_confirm(self, widget): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") apply_to_subtasks = self.builder.get_object("apply_to_subtasks") addtag_error = False entry_text = tag_entry.get_text() entry_text = entry_text.strip() # Complain if the text entry...
def on_addtag_confirm(self, widget): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") apply_to_subtasks = self.builder.get_object("apply_to_subtasks") addtag_error = False entry_text = tag_entry.get_text() entry_text = entry_text.strip() # Complain if the text entry...
463,776
def __init__(self, parent, plugins, pengine, plugin_apis): self.plugins = plugins self.pengine = pengine self.plugin_apis = plugin_apis self.builder = gtk.Builder() self.builder.add_from_file(GnomeConfig.GLADE_FILE) self.dialog = self.builder.get_object("PluginManagerDialog") # stuff to populate self.close_btn = self...
def __init__(self, parent, plugins, pengine, plugin_apis): self.plugins = plugins self.pengine = pengine self.plugin_apis = plugin_apis self.builder = gtk.Builder() self.builder.add_from_file(GnomeConfig.GLADE_FILE) self.dialog = self.builder.get_object("PluginManagerDialog") # stuff to populate self.close_btn = self...
463,777
def __init__(self, parent, plugins, pengine, plugin_apis): self.plugins = plugins self.pengine = pengine self.plugin_apis = plugin_apis self.builder = gtk.Builder() self.builder.add_from_file(GnomeConfig.GLADE_FILE) self.dialog = self.builder.get_object("PluginManagerDialog") # stuff to populate self.close_btn = self...
def __init__(self, parent, plugins, pengine, plugin_apis): self.plugins = plugins self.pengine = pengine self.plugin_apis = plugin_apis self.builder = gtk.Builder() self.builder.add_from_file(GnomeConfig.GLADE_FILE) self.dialog = self.builder.get_object("PluginManagerDialog") # stuff to populate self.close_btn = self...
463,778
def __init__(self, parent, plugins, pengine, plugin_apis): self.plugins = plugins self.pengine = pengine self.plugin_apis = plugin_apis self.builder = gtk.Builder() self.builder.add_from_file(GnomeConfig.GLADE_FILE) self.dialog = self.builder.get_object("PluginManagerDialog") # stuff to populate self.close_btn = self...
def __init__(self, parent, plugins, pengine, plugin_apis): self.plugins = plugins self.pengine = pengine self.plugin_apis = plugin_apis self.builder = gtk.Builder() self.builder.add_from_file(GnomeConfig.GLADE_FILE) self.dialog = self.builder.get_object("PluginManagerDialog") # stuff to populate self.close_btn = self...
463,779
def test_pydoctor(self): if int(subprocess.call(['which', 'pydoctor'])): #if no pydoctor is present, abort the test w/out giving error return args = ['pydoctor', '--add-package', 'GTG' ,'--make-html', '--html-output=doc/api', '--project-name=GTG', '--project-url=http://gtg.fritalk.com/'] assert(int(subprocess.call(arg...
def test_pydoctor(self): if int(subprocess.call(['which', 'pydoctor'])): #if no pydoctor is present, abort the test w/out giving error return args = ['pydoctor', '--add-package', os.path.dirname(GTG.__file__), '--make-html', '--html-output=doc/api', '--project-name=GTG', '--project-url=http://gtg.fritalk.com/'] assert(...
463,780
def deactivate(self, plugin_api): plugin_api.remove_menu_item(self.menu_item) plugin_api.remove_task_toolbar_item(self.tb_button) plugin_api.remove_task_toolbar_item(self.separator) self.txtImport = None
def deactivate(self, plugin_api): plugin_api.remove_menu_item(self.menu_item) plugin_api.remove_toolbar_item(self.tb_button) plugin_api.remove_toolbar_item(self.separator) self.txtImport = None
463,781
def _init_tree_view(self): # Tag column tag_col = gtk.TreeViewColumn() render_tags = CellRendererTags() tag_col.set_title(_("Tags")) tag_col.pack_start(render_tags, expand=False) tag_col.add_attribute(render_tags, "tag_list", COL_TAGS) render_tags.set_property('xalign', 0.0) tag_col.set_resizable(False) tag_col.set...
def _init_tree_view(self): # Tag column tag_col = gtk.TreeViewColumn() render_tags = CellRendererTags() tag_col.set_title(_("Tags")) tag_col.pack_start(render_tags, expand=False) tag_col.add_attribute(render_tags, "tag_list", COL_TAGS) render_tags.set_property('xalign', 0.0) tag_col.set_resizable(False) tag_col.set...
463,782
def _init_tree_view(self): # Tag column tag_col = gtk.TreeViewColumn() render_tags = CellRendererTags() tag_col.set_title(_("Tags")) tag_col.pack_start(render_tags, expand=False) tag_col.add_attribute(render_tags, "tag_list", COL_TAGS) render_tags.set_property('xalign', 0.0) tag_col.set_resizable(False) tag_col.set...
def _init_tree_view(self): # Tag column tag_col = gtk.TreeViewColumn() render_tags = CellRendererTags() tag_col.set_title(_("Tags")) tag_col.pack_start(render_tags, expand=False) tag_col.add_attribute(render_tags, "tag_list", COL_TAGS) render_tags.set_property('xalign', 0.0) tag_col.set_resizable(False) tag_col.set...
463,783
def _init_tree_view(self): # Tag column tag_col = gtk.TreeViewColumn() render_tags = CellRendererTags() tag_col.set_title(_("Tags")) tag_col.pack_start(render_tags, expand=False) tag_col.add_attribute(render_tags, "tag_list", COL_TAGS) render_tags.set_property('xalign', 0.0) tag_col.set_resizable(False) tag_col.set...
def _init_tree_view(self): # Tag column tag_col = gtk.TreeViewColumn() render_tags = CellRendererTags() tag_col.set_title(_("Tags")) tag_col.pack_start(render_tags, expand=False) tag_col.add_attribute(render_tags, "tag_list", COL_TAGS) render_tags.set_property('xalign', 0.0) tag_col.set_resizable(False) tag_col.set...
463,784
def _init_tree_view(self): # Tag column tag_col = gtk.TreeViewColumn() render_tags = CellRendererTags() tag_col.set_title(_("Tags")) tag_col.pack_start(render_tags, expand=False) tag_col.add_attribute(render_tags, "tag_list", COL_TAGS) render_tags.set_property('xalign', 0.0) tag_col.set_resizable(False) tag_col.set...
def _init_tree_view(self): # Tag column tag_col = gtk.TreeViewColumn() render_tags = CellRendererTags() tag_col.set_title(_("Tags")) tag_col.pack_start(render_tags, expand=False) tag_col.add_attribute(render_tags, "tag_list", COL_TAGS) render_tags.set_property('xalign', 0.0) tag_col.set_resizable(False) tag_col.set...
463,785
def do_periodic_import(self): """ See PeriodicImportBackend for an explanation of this function. """ #we verify authentication if not self.rtm_proxy.is_authenticated(): #we try to reach RTM to trigger the authentication process threading.Thread(target = self.rtm_proxy.get_rtm_tasks_dict).start() if self.enqueued_start_...
def do_periodic_import(self): """ See PeriodicImportBackend for an explanation of this function. """ #we verify authentication if not self.rtm_proxy.is_authenticated(): #we try to reach RTM to trigger the authentication process threading.Thread(target = self.rtm_proxy.get_rtm_tasks_dict).start() if self.enqueued_start_...
463,786
def set_task(self, task): """ See GenericBackend for an explanation of this function. """ if not self.rtm_proxy.is_authenticated(): return self.cancellation_point() tid = task.get_id() is_syncable = self._gtg_task_is_syncable_per_attached_tags(task) action, rtm_task_id = self.sync_engine.analyze_local_id( \ tid, \ self...
def set_task(self, task): """ See GenericBackend for an explanation of this function. """ if not self.rtm_proxy.is_authenticated(): return self.cancellation_point() tid = task.get_id() is_syncable = self._gtg_task_is_syncable_per_attached_tags(task) action, rtm_task_id = self.sync_engine.analyze_local_id( \ tid, \ self...
463,787
def set_task(self, task): """ See GenericBackend for an explanation of this function. """ if not self.rtm_proxy.is_authenticated(): return self.cancellation_point() tid = task.get_id() is_syncable = self._gtg_task_is_syncable_per_attached_tags(task) action, rtm_task_id = self.sync_engine.analyze_local_id( \ tid, \ self...
def set_task(self, task): """ See GenericBackend for an explanation of this function. """ if not self.rtm_proxy.is_authenticated(): return self.cancellation_point() tid = task.get_id() is_syncable = self._gtg_task_is_syncable_per_attached_tags(task) action, rtm_task_id = self.sync_engine.analyze_local_id( \ tid, \ self...
463,788
def _populate_rtm_task(self, task, rtm_task): ''' Copies the content of a Task into a RTMTask ''' #Get methods of an rtm_task are fast, set are slow: therefore, # we try to use set as rarely as possible
def _populate_rtm_task(self, task, rtm_task, transaction_ids = []): ''' Copies the content of a Task into a RTMTask ''' #Get methods of an rtm_task are fast, set are slow: therefore, # we try to use set as rarely as possible
463,789
def _populate_rtm_task(self, task, rtm_task): ''' Copies the content of a Task into a RTMTask ''' #Get methods of an rtm_task are fast, set are slow: therefore, # we try to use set as rarely as possible
def _populate_rtm_task(self, task, rtm_task): ''' Copies the content of a Task into a RTMTask ''' #Get methods of an rtm_task are fast, set are slow: therefore, # we try to use set as rarely as possible
463,790
def _populate_rtm_task(self, task, rtm_task): ''' Copies the content of a Task into a RTMTask ''' #Get methods of an rtm_task are fast, set are slow: therefore, # we try to use set as rarely as possible
def _populate_rtm_task(self, task, rtm_task): ''' Copies the content of a Task into a RTMTask ''' #Get methods of an rtm_task are fast, set are slow: therefore, # we try to use set as rarely as possible
463,791
def _populate_rtm_task(self, task, rtm_task): ''' Copies the content of a Task into a RTMTask ''' #Get methods of an rtm_task are fast, set are slow: therefore, # we try to use set as rarely as possible
def _populate_rtm_task(self, task, rtm_task): ''' Copies the content of a Task into a RTMTask ''' #Get methods of an rtm_task are fast, set are slow: therefore, # we try to use set as rarely as possible
463,792
def _populate_rtm_task(self, task, rtm_task): ''' Copies the content of a Task into a RTMTask ''' #Get methods of an rtm_task are fast, set are slow: therefore, # we try to use set as rarely as possible
def _populate_rtm_task(self, task, rtm_task): ''' Copies the content of a Task into a RTMTask ''' #Get methods of an rtm_task are fast, set are slow: therefore, # we try to use set as rarely as possible
463,793
def _populate_rtm_task(self, task, rtm_task): ''' Copies the content of a Task into a RTMTask ''' #Get methods of an rtm_task are fast, set are slow: therefore, # we try to use set as rarely as possible
def _populate_rtm_task(self, task, rtm_task): ''' Copies the content of a Task into a RTMTask ''' #Get methods of an rtm_task are fast, set are slow: therefore, # we try to use set as rarely as possible
463,794
def refresh_rtm_tasks_dict(self): ''' Builds a list of RTMTasks fetched from RTM ''' if not self.is_authenticated(): self.start_authentication() self.wait_for_authentication()
def refresh_rtm_tasks_dict(self): ''' Builds a list of RTMTasks fetched from RTM ''' if not self.is_authenticated(): self.start_authentication() self.wait_for_authentication()
463,795
def create_new_rtm_task(self, title): ''' Creates a new rtm task ''' result = self.rtm.tasks.add(timeline = self.timeline, name = title) rtm_task = RTMTask(result.list.taskseries.task, result.list.taskseries, result.list, self.rtm, self.timeline) #adding to the dict right away if hasattr(self, '_rtm_task_dict'): #if t...
def create_new_rtm_task(self, title, transaction_ids = []): ''' Creates a new rtm task ''' result = self.rtm.tasks.add(timeline = self.timeline, name = title) rtm_task = RTMTask(result.list.taskseries.task, result.list.taskseries, result.list, self.rtm, self.timeline) #adding to the dict right away if hasattr(self, '_...
463,796
def set_title(self, title): '''Sets the task title''' self.rtm.tasks.setName(timeline = self.timeline, list_id = self.rtm_list.id, taskseries_id = self.rtm_taskseries.id, task_id = self.rtm_task.id, name = title)
def set_title(self, title, transaction_ids = []): '''Sets the task title''' self.rtm.tasks.setName(timeline = self.timeline, list_id = self.rtm_list.id, taskseries_id = self.rtm_taskseries.id, task_id = self.rtm_task.id, name = title)
463,797
def set_title(self, title): '''Sets the task title''' self.rtm.tasks.setName(timeline = self.timeline, list_id = self.rtm_list.id, taskseries_id = self.rtm_taskseries.id, task_id = self.rtm_task.id, name = title)
def set_title(self, title): '''Sets the task title''' self.rtm.tasks.setName(timeline = self.timeline, list_id = self.rtm_list.id, taskseries_id = self.rtm_taskseries.id, task_id = self.rtm_task.id, name = title)
463,798
def set_status(self, gtg_status): '''Sets the task status, in GTG terminology''' status = GTG_TO_RTM_STATUS[gtg_status] if status == True: api_call = self.rtm.tasks.uncomplete else: api_call = self.rtm.tasks.complete api_call(timeline = self.timeline, list_id = self.rtm_list.id, taskseries_id = self.rtm_task...
def set_status(self, gtg_status, transaction_ids = []): '''Sets the task status, in GTG terminology''' status = GTG_TO_RTM_STATUS[gtg_status] if status == True: api_call = self.rtm.tasks.uncomplete else: api_call = self.rtm.tasks.complete api_call(timeline = self.timeline, list_id = self.rtm_list.id, taskser...
463,799