diff options
| author | simon@elektropost.org <simon@dyn-143.club.berlin.ccc.de> | 2009-02-01 01:23:53 +0100 |
|---|---|---|
| committer | simon@elektropost.org <simon@dyn-143.club.berlin.ccc.de> | 2009-02-01 01:23:53 +0100 |
| commit | 05cacb3befdbd0ff7338dcfbc586f63a8893ff56 (patch) | |
| tree | dd332fe2fd99b5d724a384ddff584410b1415ba3 /lib | |
| parent | 33f80f3b1e0a1fe676cc64f7546d3a943d7e3cbd (diff) | |
| parent | 32c1c784358700a599e53cd86fb2c6f318ad0217 (diff) | |
Merge branch 'poc1' of ssh://git@svn.medienhaus.udk-berlin.de/usr/local/git/cccms into poc1
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/update_importer.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/update_importer.rb b/lib/update_importer.rb index 4d4e1d5..af7064c 100644 --- a/lib/update_importer.rb +++ b/lib/update_importer.rb | |||
| @@ -80,6 +80,7 @@ class UpdateImporter | |||
| 80 | if node.pages.empty? | 80 | if node.pages.empty? |
| 81 | node.pages.create!( | 81 | node.pages.create!( |
| 82 | :title => xhtml.elements['title'].get_text.to_s, | 82 | :title => xhtml.elements['title'].get_text.to_s, |
| 83 | :abstract => xhtml.elements['abstract'].get_text.to_s, | ||
| 83 | :body => body, | 84 | :body => body, |
| 84 | :published_at => date | 85 | :published_at => date |
| 85 | ) | 86 | ) |
| @@ -132,8 +133,4 @@ class UpdateImporter | |||
| 132 | element | 133 | element |
| 133 | end | 134 | end |
| 134 | 135 | ||
| 135 | end | 136 | end \ No newline at end of file |
| 136 | |||
| 137 | i = UpdateImporter.new ('/Users/hukl/Desktop/updates') | ||
| 138 | i.import_xml | ||
| 139 | |||
