public
Description: Tracks is a GTD(TM) web application, built with Ruby on Rails
Homepage: http://www.rousette.org.uk/projects/
Clone URL: git://github.com/bsag/tracks.git
Click here to lend your support to: tracks and make a donation at www.pledgie.com !
add recurring todos to export to yml and xml
lrbalt (author)
Fri Sep 05 08:41:30 -0700 2008
commit  88159d3f6ad4b0d0aa4d6b69c94b75d645cd2ecc
tree    931e4efea090e75b736b1e983d34bdbe569016b6
parent  1239a2cd6137ce99c95d0c99c4c8fa0d07db5cf0
...
24
25
26
 
27
28
29
...
81
82
83
 
84
85
86
...
24
25
26
27
28
29
30
...
82
83
84
85
86
87
88
0
@@ -24,6 +24,7 @@ class DataController < ApplicationController
0
     all_tables['tags'] = current_user.tags.find(:all)
0
     all_tables['taggings'] = current_user.taggings.find(:all)
0
     all_tables['notes'] = current_user.notes.find(:all)
0
+    all_tables['recurring_todos'] = current_user.recurring_todos.find(:all)
0
     
0
     result = all_tables.to_yaml
0
     result.gsub!(/\n/, "\r\n")   # TODO: general functionality for line endings
0
@@ -81,6 +82,7 @@ class DataController < ApplicationController
0
     result << current_user.tags.find(:all).to_xml(:skip_instruct => true)
0
     result << current_user.taggings.find(:all).to_xml(:skip_instruct => true)
0
     result << current_user.notes.find(:all).to_xml(:skip_instruct => true)
0
+    result << current_user.recurring_todos.find(:all).to_xml(:skip_instruct => true)
0
     send_data(result, :filename => "tracks_backup.xml", :type => 'text/xml')
0
   end
0
   

Comments