view · edit · sidebar · attach · print · history

20121207-update-text-info-updater-fiparsed

<< | Index | >>


Summary

  • Update TextInfoPlugin
  • Update fiparsed

Commits

Finaly, oddb.yml is

text_info_newssource: 'http://www.documed.ch/de/xml/fastonline.rss.php'
text_info_newssource2: 'http://compendium.ch/update/de'
text_info_searchform: 'http://classic.compendium.ch/Search.aspx?lang=de'
text_info_searchform2: 'http://compendium.ch/search/de'

Jobs are

$ ruby jobs/update_textinfo_news (classic)
$ ruby jobs/update_textinfo_news2 (new compendium.ch with by company name)

Index


Update textinfo plugin

commit
use new compendium.ch (classic updater also still available)

oddb.yml

```
text_info_newssource: 'http://www.documed.ch/de/xml/fastonline.rss.php'
text_info_newssource2: 'http://compendium.ch/update/subject/security/1/de'
text_info_searchform: 'http://classic.compendium.ch/Search.aspx?lang=de'
text_info_searchform2: 'http://compendium.ch/search/de'
```

Improve textinfo plugin

improve to check "INOVATION UPDATES" for import_daily.
update TextInfonew#textinfo_news2.

#text_info_newssource2: 'http://compendium.ch/update/subject/security/1/de'
text_info_newssource2: 'http://compendium.ch/update/de'

check with date 2012-11-30.
Bayer (Schweiz) AG comes from __INNOVATION__ updates list.

ch.oddb> TextInfoPlugin.new(self).textinfo_news2
-> ["Novartis Pharma Schweiz AG", "Allergan AG", "Boehringer Ingelheim (Schweiz) GmbH", "Opopharma Vertriebs AG", "Streuli Pharma AG", "Bayer (Schweiz) AG"]
commit

Skip new chapter Description

error by unexpected new chapter 9200

Plugin: ODDB::TextInfoPlugin
Error: RuntimeError
Message: Unknown chapter-code 9200, while parsing Menjugate®
Backtrace:
(druby://localhost:10002) /var/www/oddb.org/ext/fiparse/src/fachinfo_hpricot.rb:72:in `identify_chapter'
(druby://localhost:10002) /var/www/oddb.org/ext/fiparse/src/textinfo_hpricot.rb:59:in `block in extract'
(druby://localhost:10002) /var/www/oddb.org/ext/fiparse/src/textinfo_hpricot.rb:58:in `each'
(druby://localhost:10002) /var/www/oddb.org/ext/fiparse/src/textinfo_hpricot.rb:58:in `extract'
Beschreibung

in Glasfläschchen (Glas Typ I) mit Brombutyl-Gummistopfen, bzw. einer Spritze (Glas Typ I) mit Typ I Stopfen geliefert

skipped this chapter.

commit

Update patinfo updating

z.B.

fachinfo only product (product ID != fachinfo ID)
fachinfo and patinfo (product ID == patinfo ID)
commit

Check recent errors on production

check recent error-requests in production.

2012-12-06 19:11:02.353435500 error in SBSM::Session#process: /de/gcc/search/query/A01A/dstype/compare/display/paged
2012-12-06 19:11:02.353473500 NoMethodError
2012-12-06 19:11:02.353473500 undefined method `write' for "paged":String
2012-12-06 19:11:02.353473500 /usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.2/lib/sbsm/validator.rb:146:in `display'
2012-12-06 19:11:02.353474500 /usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.2/lib/sbsm/validator.rb:146:in `perform_validation'
2012-12-06 19:11:02.353474500 /usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.2/lib/sbsm/validator.rb:119:in `validate'
2012-12-06 19:11:02.353480500 /usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.2/lib/sbsm/session.rb:241:in `block in import_user_input'
2012-12-06 19:11:02.353481500 /usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.2/lib/sbsm/session.rb:224:in `each'
2012-12-04 23:45:45.242723500 error in SBSM::Session#process: /dt/generika
2012-12-04 23:45:45.242725500 NoMethodError
2012-12-04 23:45:45.242725500 undefined method `[]' for nil:NilClass
2012-12-04 23:45:45.242725500 /var/www/oddb.org/src/state/feedbacks.rb:71:in `update'
2012-12-04 23:45:45.242726500 /usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.2/lib/sbsm/state.rb:203:in `_trigger'
2012-12-04 23:45:45.242726500 /var/www/oddb.org/src/state/global.rb:972:in `_trigger'
2012-12-04 23:45:45.242727500 /usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.2/lib/sbsm/state.rb:192:in `trigger'
2012-12-04 23:45:45.242766500 /usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.2/lib/sbsm/session.rb:361:in `process'
2012-12-03 13:53:04.619237500 error in SBSM::Session#to_html: /de/gcc/search/zone/drugs/search_query/similasan/search_type/st_company
2012-12-03 13:53:04.619239500 NoMethodError
2012-12-03 13:53:04.619239500 undefined method `package_count' for nil:NilClass
2012-12-03 13:53:04.619240500 /var/www/oddb.org/src/state/page_facade.rb:27:in `method_missing'
2012-12-03 13:53:04.619240500 /var/www/oddb.org/src/view/drugs/result.rb:147:in `breadcrumbs'
2012-12-03 13:53:04.619240500 /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:68:in `create'
2012-12-03 13:53:04.619254500 /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:286:in `compose_component'
2012-12-03 13:53:04.619255500 /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:211:in `block in compose'
2012-12-03 13:53:04.619256500 /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:205:in `each'
2012-12-03 13:53:04.619256500 /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:205:in `compose'
2012-12-03 13:53:04.619261500 /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:57:in `init
2012-12-03 11:25:45.761247500 error in SBSM::Session#to_html: /fr/santesuisse/fachinfo/reg/57260
2012-12-03 11:25:45.761294500 Errno::ETIMEDOUT
2012-12-03 11:25:45.761294500 Connection timed out - connect(2)
2012-12-03 11:25:45.761294500 /usr/local/lib/ruby/1.9.1/net/http.rb:762:in `initialize'
2012-12-03 11:25:45.761295500 /usr/local/lib/ruby/1.9.1/net/http.rb:762:in `open'
2012-12-03 11:25:45.761295500 /usr/local/lib/ruby/1.9.1/net/http.rb:762:in `block in connect'
2012-12-03 11:25:45.761296500 /usr/local/lib/ruby/1.9.1/timeout.rb:54:in `timeout'
2012-12-03 11:25:45.761367500 /usr/local/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
2012-12-03 11:25:45.761367500 /usr/local/lib/ruby/1.9.1/net/http.rb:762:in `connect'
2012-12-03 11:25:45.761368500 /usr/local/lib/ruby/1.9.1/net/http.rb:755:in `do_start'
2012-12-03 11:25:45.761368500 /usr/local/lib/ruby/1.9.1/net/http.rb:744:in `start'
2012-12-03 11:25:45.761368500 /usr/local/lib/ruby/gems/1.9.1/gems/flickraw-0.9.5/lib/flickraw/oauth.rb:142:in `post'
2012-12-03 11:25:45.761375500 /usr/local/lib/ruby/gems/1.9.1/gems/flickraw-0.9.5/lib/flickraw/oauth.rb:86:in `post_form'
2012-12-03 11:25:45.761375500 /usr/local/lib/ruby/gems/1.9.1/gems/flickraw-0.9.5/lib/flickraw/api.rb:53:in `call'
2012-12-03 11:25:45.761387500 (eval):3:in `getSizes'
2012-12-03 11:25:45.761387500 /var/www/oddb.org/src/model/package.rb:337:in `photo'
2012-12-01 06:36:03.333213500 error in SBSM::Session#http_headers: /de/mobile/fachinfo/reg/55855/chapter/ddd%26sa%3DU%26ei%3DxwhZUN_GG5PRiALJ6oAo%26ved%3D0CFcQFjAX%26u
sg%3DAFQjCNEmub1r1HdYuquYzxHlKD2vsmHU-w
2012-12-01 06:36:03.333214500 NoMethodError
2012-12-01 06:36:03.333214500 undefined method `de' for #<ODDB::State::Drugs::Fachinfo::FachinfoWrapper:0x000000144b0690>
2012-12-01 06:36:03.333215500 /var/www/oddb.org/src/view/drugs/fachinfo.rb:276:in `init'
2012-12-01 06:36:03.333225500 /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/component.rb:139:in `initialize'
2012-12-01 06:36:03.333225500 /var/www/oddb.org/src/view/publictemplate.rb:61:in `new'
2012-12-01 06:36:03.333226500 /var/www/oddb.org/src/view/publictemplate.rb:61:in `content'
2012-12-01 06:36:03.333226500 /usr/local/lib/ruby/gems/1.9.1/gems/htmlgrid-1.0.6/lib/htmlgrid/composite.rb:68:in `create'
2012-12-01 06:36:03.333227500 error in SBSM::Session#process: /de/mobile/fachinfo/reg/55855/chapter/ddd
2012-12-01 06:36:03.333231500 NoMethodError
2012-12-01 06:36:03.333232500 undefined method `localized_name' for nil:NilClass
2012-12-01 06:36:03.333232500 /usr/local/lib/ruby/gems/1.9.1/gems/odba-1.0.8/lib/odba/stub.rb:112:in `method_missing'
2012-12-01 06:36:03.333233500 /var/www/oddb.org/src/state/drugs/fachinfo.rb:29:in `init'
2012-12-01 06:36:03.333233500 /usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.2/lib/sbsm/session.rb:367:in `process'
2012-12-01 06:36:03.333238500 /var/www/oddb.org/src/util/session.rb:117:in `process'
2012-12-01 06:36:03.333238500 /usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.2.2/lib/sbsm/session.rb:172:in `block in drb_process'
2012-12-01 06:36:03.737350500 ODBA::Stub was unable to replace ODDB::Fachinfo#23758170 from ODDB::Registration:#26972
view · edit · sidebar · attach · print · history
Page last modified on December 07, 2012, at 03:02 PM