view · edit · sidebar · attach · print · history

20120511-update-ydocx-mali-order-price

<< | Index | >>


Summary

  • Updated ydocx image refence option.
    • prevent same file copy.
  • Added deletion of old mail_order_price.
    • renamed job from import_mail_order_price to update_mail_order_price.

Commits

ydocx
oddb.org

Index


ydocx image copy

exception for same image file copy

$ repo/bin/docx2html sandbox/BEILAGE_K_FI_mittel.docx fi/61389/image/image1.png
/usr/local/lib/ruby/1.9.1/fileutils.rb:1514:in `block in fu_each_src_dest': same file: /home/yasu/Documents/workspace/ywesee/ydocx/fi/61389/image/image1.png and fi/61389/image/image1.png (ArgumentError)
        from /usr/local/lib/ruby/1.9.1/fileutils.rb:1531:in `fu_each_src_dest0'
        from /usr/local/lib/ruby/1.9.1/fileutils.rb:1513:in `fu_each_src_dest'
        from /usr/local/lib/ruby/1.9.1/fileutils.rb:395:in `cp'
...

updated to prevent same file copy.

Updated to prevent same image file copy


update mail_order_price_updater

Added deletion in update_mail_order_price updater.
in src/plugin/mail_order_price.rb

And renamed job from import_mail_order_price to update_mail_order_price

Report mail
Updated Packages: 4
Deleted Packages: 1

testcase oddb.org

remove errors from plugin test.

test_plugin/suite.rb

before

Finished in 33.54882256 seconds.

520 tests, 767 assertions, 40 failures, 58 errors, 0 pendings, 0 omissions, 1 notifications
81.1538% passed

15.50 tests/s, 22.86 assertions/s
plugins
  • $ ruby test_plugin/bsv_xml.rb
    76 tests, 146 assertions, 31 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
    59.2105% passed
  • $ ruby test_plugin/comarketing.rb
    12 tests, 13 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
    100% passed
  • $ ruby test_plugin/csv_export.rb
    12 tests, 12 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
    91.6667% passed
  • $ ruby test_plugin/doctors.rb
    17 tests, 18 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
    100% passe
  • $ ruby test_plugin/download_invoicer.rb
    5 tests, 8 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
    100% passed
  • $ ruby test_plugin/fachinfo_invoicer.rb
    7 tests, 7 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
    100% passed
  • $ ruby test_plugin/fipdf.rb
    1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
    100% passed
test_plugin/suite.rb

after

Finished in 21.564597033 seconds.

520 tests, 784 assertions, 44 failures, 43 errors, 0 pendings, 0 omissions, 1 notifications
83.2692% passed

24.11 tests/s, 36.36 assertions/s
NOTE
  • test_plugin/csv_export.rb needs migeld and exportd

Updated legende in resultlist


Update export_oddb_csv job

Created new jobs

  • export_oddb_csv
  • export_oddb2_csv

src/util/exporter.rb

     def export_csv
      plug = CsvExportPlugin.new(@app)
      safe_export 'oddb.csv' do
        plug.export_drugs
      end 
      safe_export 'oddb2.csv' do
        plug.export_drugs_extended
      end 
      EXPORT_SERVER.clear
      sleep(30)
    end

src/util/updater.rb

    def export_oddb_csv(date = @@today)
      subj = 'oddb.csv'
      wrap_update(CsvExportPlugin, subj) {
        plug = CsvExportPlugin.new(@app)
        plug.export_drugs
        log = Log.new(date)
        log.update_values(log_info(plug))
        log.notify(subj)
      }   
    end 
    def export_oddb2_csv(date = @@today)
      subj = 'oddb2.csv'
      wrap_update(CsvExportPlugin, subj) {
        plug = CsvExportPlugin.new(@app)
        plug.export_drugs_extended
        log = Log.new(date)
        log.update_values(log_info(plug))
        log.notify(subj)
      }   
    end

Think about shortcut_url

for Fachinfo

NOTE
transhandler
  • etc/trans_handler.yml
  • SBSM::Transhandler
  • RubyTransHandler of mod_ruby
oddb.org
  • We may can replace event, user_input and url in ODDB::Session by Request#request_path
  • ODDB::Session#event

z.B.

http://oddb.yasuhiro.org/fi/lev_desitin => http://oddb.yasuhiro.org/fi/gcc/fachinfo/reg/62069

Refs

view · edit · sidebar · attach · print · history
Page last modified on May 11, 2012, at 06:04 PM