<< | Index | >>
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
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
Updated Packages: 4 Deleted Packages: 1
remove errors from plugin test.
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
76 tests, 146 assertions, 31 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 59.2105% passed
12 tests, 13 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed
12 tests, 12 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 91.6667% passed
17 tests, 18 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passe
5 tests, 8 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed
7 tests, 7 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed
1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed
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
migeld
and exportd
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
for Fachinfo
z.B.
http://oddb.yasuhiro.org/fi/lev_desitin => http://oddb.yasuhiro.org/fi/gcc/fachinfo/reg/62069
http://oddb.yasuhiro.org/lev_desitin => http://oddb.yasuhiro.org/fi/gcc/fachinfo/reg/62069
SBSM::TransHandler
def translate_uri(request) @@empty_check ||= Regexp.new('^/?$') @@lang_check ||= Regexp.new('^/[a-z]{2}(/|$)') config = config(request) handle_shortcut(request, config) uri = request.uri case uri when @@empty_check ...
use ModRewrite ?
org.yasuhiro.xmlconv.sandoz> ODBA.cache.fetch('29177').odba_store -> /home/yasu/usr/local/lib/ruby/gems/1.8/gems/dbd-pg-0.3.9/lib/dbd/pg/statement.rb:62:in `execute': ERROR: duplicate key value violates unique constraint "object_name_key"
org.yasuhiro.xmlconv.sandoz> transactions.odba_isolated_store -> /home/yasu/usr/local/lib/ruby/gems/1.8/gems/dbd-pg-0.3.9/lib/dbd/pg/statement.rb:62:in `execute': ERROR: duplicate key value violates unique constraint "object_name_key"