diff options
| author | hukl <contact@smyck.org> | 2009-03-31 23:46:11 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-03-31 23:46:11 +0200 |
| commit | 41ee3ef53f85f0529b2dd6e44f0b4fbd0f3777a2 (patch) | |
| tree | d8ef7ff9ddb96304b140212097be8c6e1e817a64 /lib/chaos_importer.rb | |
| parent | ebbad4011bc5652966bd25d8455da208c7f9ab7f (diff) | |
don't even look
Diffstat (limited to 'lib/chaos_importer.rb')
| -rw-r--r-- | lib/chaos_importer.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chaos_importer.rb b/lib/chaos_importer.rb index 657f1f0..f8e98f5 100644 --- a/lib/chaos_importer.rb +++ b/lib/chaos_importer.rb | |||
| @@ -59,6 +59,7 @@ class ChaosImporter | |||
| 59 | end | 59 | end |
| 60 | 60 | ||
| 61 | self.each do |update| | 61 | self.each do |update| |
| 62 | |||
| 62 | author = find_or_create_author( update ) | 63 | author = find_or_create_author( update ) |
| 63 | node = find_or_create_node( update ) | 64 | node = find_or_create_node( update ) |
| 64 | html = convert_to_html( update.xml ) | 65 | html = convert_to_html( update.xml ) |
| @@ -68,7 +69,8 @@ class ChaosImporter | |||
| 68 | add_event_to_node node, update.xml if page.tag_list.include?("event") | 69 | add_event_to_node node, update.xml if page.tag_list.include?("event") |
| 69 | page.user = author | 70 | page.user = author |
| 70 | page.save | 71 | page.save |
| 71 | # puts node.unique_name | 72 | |
| 73 | puts node.unique_name | ||
| 72 | end | 74 | end |
| 73 | 75 | ||
| 74 | Node.all.each {|node| node.publish_draft!} | 76 | Node.all.each {|node| node.publish_draft!} |
| @@ -115,8 +117,6 @@ class ChaosImporter | |||
| 115 | @years[year].move_to_child_of @updates | 117 | @years[year].move_to_child_of @updates |
| 116 | end | 118 | end |
| 117 | 119 | ||
| 118 | puts update.unique_name | ||
| 119 | |||
| 120 | unless node = Node.find_by_unique_name(update.unique_name) | 120 | unless node = Node.find_by_unique_name(update.unique_name) |
| 121 | node = Node.create :slug => update.slug | 121 | node = Node.create :slug => update.slug |
| 122 | node.move_to_child_of @years[year] | 122 | node.move_to_child_of @years[year] |
