summaryrefslogtreecommitdiff
path: root/lib/update_importer.rb
diff options
context:
space:
mode:
authorhukl <hukl@eight.local>2009-02-06 21:48:41 +0100
committerhukl <hukl@eight.local>2009-02-07 12:25:31 +0100
commitce9645d0092d42c7bf8781378181ffbd4ff3d088 (patch)
treee569a73ac2db2b36b2e90835260c46bcf0d479fa /lib/update_importer.rb
parent79002c688d4fe6bf058459af84986a0d70dde758 (diff)
added head id to node model which points to the
head of the nodes pages collection. modified tests, importer etc renamed flags to tags
Diffstat (limited to 'lib/update_importer.rb')
-rw-r--r--lib/update_importer.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/update_importer.rb b/lib/update_importer.rb
index ec9033a..f09564e 100644
--- a/lib/update_importer.rb
+++ b/lib/update_importer.rb
@@ -90,9 +90,13 @@ class UpdateImporter
90 if (flags = xhtml.elements['flags']) && page 90 if (flags = xhtml.elements['flags']) && page
91 page.tag_list.add("event") if flags.attributes['calendar'] 91 page.tag_list.add("event") if flags.attributes['calendar']
92 page.tag_list.add("pressemitteilung") if flags.attributes['pm'] 92 page.tag_list.add("pressemitteilung") if flags.attributes['pm']
93 page.save 93 page.save!
94 print "#{page.title} >>> " 94 end
95 puts flags.attributes['calendar'].inspect 95
96 if node.head.nil? && page
97 puts page.title
98 node.head = page
99 node.save!
96 end 100 end
97 end 101 end
98 102