view · edit · sidebar · attach · print · history

20130327-debug-rss-feed-generator-swissmedicinfo-pi-updater

<< | Index | >>


Summary

  • Debug RSS feed generator.
  • Debug fiparsed for PI.

Commits

ch.oddb.org
ebps

Index


Debug RSS feed generator

Error on production.
Maybe this is problem that is related to GC.

Plugin: ODDB::TextInfoPlugin
Error: NotImplementedError
Message: method `method_missing' called on unexpected T_NODE object
(0x00000005d90bc0 flags=0x23c klass=0x0)
Backtrace:
/var/www/oddb.org/src/model/fachinfo.rb:91:in `localized_name'
/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.1.0/lib/odba/stub.rb:112:in
`method_missing'
/var/www/oddb.org/src/view/rss/fachinfo.rb:58:in `block (2 levels) in to_html'
/var/www/oddb.org/src/view/rss/fachinfo.rb:50:in `each'
/var/www/oddb.org/src/view/rss/fachinfo.rb:50:in `block in to_html'
/usr/local/lib/ruby/1.9.1/rss/maker/base.rb:438:in `make'
/usr/local/lib/ruby/1.9.1/rss/maker/base.rb:402:in `make'
/usr/local/lib/ruby/1.9.1/rss/maker.rb:9:in `make'
/var/www/oddb.org/src/view/rss/fachinfo.rb:40:in `to_html'
/var/www/oddb.org/src/plugin/plugin.rb:86:in `block (2 levels) in
update_rss_feeds'
/var/www/oddb.org/src/plugin/plugin.rb:85:in `open'
/var/www/oddb.org/src/plugin/plugin.rb:85:in `block in update_rss_feeds'
/var/www/oddb.org/src/plugin/plugin.rb:49:in `call'
/var/www/oddb.org/src/plugin/plugin.rb:49:in `block in l10n_sessions'
...

Encoding problem in RSS creation on Production.

Non US-ASCII detected and no charset defined.
Defaulting to UTF-8, set your own if this is incorrect.
<- "MAIL FROM:<admin@ywesee.com>\r\n"
-> "250 2.1.0 OK f47sm20081641eep.13 - gsmtp\r\n"
<- "RCPT TO:<zdavatz@ywesee.com>\r\n"
-> "250 2.1.5 OK f47sm20081641eep.13 - gsmtp\r\n"
<- "DATA\r\n"
-> "354  Go ahead f47sm20081641eep.13 - gsmtp\r\n"
...

Debug Swissmedicinfo updater and fiparsed

These problems are almost related to View.

  • Search result view (PDF PI, Chapter order, Image in PI)
  • Chapter order

Only some Patinfos have iksnrs. (PatinfoDocument2001).
But there is no this objects. (no noconnection)

ch.oddb> patinfos.values.select {|pi| pi.respond_to?(:iksnrs) }.length
-> 0
src/model/patinfo.rb
attr_accessor :iksnrs # interface only, no data

And, now PDF Patinfo has 1st priority.

src/view/additional_information.rb
 if(pdf_patinfo = model.pdf_patinfo)
   klass = HtmlGrid::PopupLink
   href = @lookandfeel.resource_global(:pdf_patinfo, pdf_patinfo)
 elsif (model.patinfo and seqnr = model.seqnr)
   klass = HtmlGrid::Link
   smart_link_format = [:reg, model.iksnr, :seq, seqnr]
   href = @lookandfeel._event_url(:patinfo, smart_link_format)
 elsif (patinfo = model.patinfo) # This is an old format URL for PI. Probably no need any more (but still available).
   klass = HtmlGrid::Link
   old_link_format = {'pointer' => patinfo.pointer}
   href = @lookandfeel._event_url(:resolve, old_link_format)
 end
commit

TODO

  • Image from swissmedicinfo.ch
  • Starage Chapter order

Debug Ebook encoding error

NoMethodError: undefined method `force_encoding' for
#<EBPS::Text::Chapter:0x00000001b96d60>
/usr/lib64/ruby19/site_ruby/1.9.1/ebps/conversion/patinfo_yaml.rb:108:in
`encode'
/usr/lib64/ruby19/site_ruby/1.9.1/ebps/conversion/patinfo_yaml.rb:99:in
`assemble_document'
/usr/lib64/ruby19/site_ruby/1.9.1/ebps/conversion/patinfo_yaml.rb:31:in
`block in <module:EBPS>'
/usr/lib64/ruby19/1.9.1/yaml.rb:217:in `call'
...
commit
view · edit · sidebar · attach · print · history
Page last modified on March 27, 2013, at 08:33 AM