20120117-update-sbsm-update-narcotics-data-importer-fix-small-bugs-oddb_org
<< Masa.20120118-update-narcotic-data-view-state-oddb_org | Index | Masa.20120116-fix-rss-pointer-link-new-patent-link-encode-compress-oddb_csv-fix-download-patinfo-invoices-update-sbsm-simple_uri_parser >>
- Htmlgrid crash error
- Apache and mod_ruby and SBSM and rockit library
- Check error log
- Update narcotic data structure and process
- Commits
-
- Removed redefine_19_cookie.rb (sbsm)
- Added html-parser.rb, formatter.rb, sbml-parser.rb to src/util (oddb.org)
- Added doc/resources/gcc/oddb.css (oddb.org)
- Rescue KeyError when searching the index tables of ODBA cache (oddb.org)
- Fix error: undefined method pointer for nil:NilClass in State::Global#resolve
- Fix undefined method split for :sl:Symbol in price_history view (oddb.org)
- Fix FloatDomainError(Infinity, divided by 0) in price history view (oddb.org)
- Fix encoding error in quanty/fact.rb (oddb.org)
- Skip an error of invalid patinfo document in patinfo view (oddb.org)
- Delete update_narcotics from import_daily, and delete export narcotics yaml from export_daily (oddb.org)
- Changed BM (Narcotic) link (oddb.org)
- Add bm_flag accessor to Package class, and changed the condition of showing 'BM' link to use bm_flag in drug view (oddb.org)
- Added NarcoticPlugin#update_from_xls method for new importer of narcotics xls file, and added Updater#update_btm(path) (oddb.org)
Htmlgrid crash error
Error (if htmlgrid.so is compiled from extconf.rb on Ruby 1.8)
Apache and mod_ruby and SBSM and rockit library
Note
- mod_ruby is compiled on Ruby 1.8 (precisely extconf.rb on Ruby 1.8 makes Makefile, and mod_ruby.so is compiled from the Makefile)
- That means, mod_ruby runs on Ruby 1.8 and search libraries from Ruby library path of Ruby 1.8
- The current virtual host setting is
RubyRequire 'sbsm/trans_handler'
- This calls SBSM from the Ruby library paths of Ruby 1.8 (SBSM gems on Ruby 1.9 is not used)
- And SBSM::TransHandler (parser classes) calls rockit library
- Even if the library is specified like
RubyRequire '/usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.0.5/sbsm/lib/sbsm/trans_handler'
- The SBSM runs on Ruby 1.8 and tries to call rockit library from Ruby paths of Ruby 1.8
- If rockit library is not found from the library paths of Ruby 1.8, then simple_uri_parser (SBSM::TransHandler#simple_parse_uri method) is used.
Check error log
/service/ch.oddb/log/main/current
Update narcotic data structure and process
Design
- Quit use @narcotics variable and data
- Stop using update_narcotics from import_daily, stop using export narcotic (yaml, csv) from export_daily
- Narcotic information will be added under Package class
- a flag variable is set in Package class and if there is information in the xls file, the flag should be set to True
- If the flag is true, 'BM' link should be shown and it is linked to the site
- Change the narcoti view
Commit
Not commited yet