view · edit · sidebar · attach · print · history

20120611-import-patinfo-only-job-and-patinfo2csv-error

<< | Index | >>


Summary

  • setup fiparsed
  • create new job update_paninfo_only with sepecified companies arguments
  • updated patinfo2csv

Commits

Index


Create import_patinfo_only job

update_company_textinfo

require
  • fiparsed

setup

Refs

flow

(If there is no Fachinfo, this method does not import Patinfo, too.)

* Job.run (jobs/update_company_textinfo)
  * Updater.update_company_textinfos (src/util/updater.rb)
    * TextinfoPlugin#import_company (src/plugin/text_info.rb)
      * search_company
        * search
      * import_companies
        * import_products
          * import_product
            * update_product

Fix patinfo2csv not found error

problem

If patinfo.yaml dose not have any given ean codes (as 3rd parameter), following error caused.

$ patinfo2csv patinfo.yaml patinfo.csv rose_ean_short.txt -l de
/usr/local/lib64/ruby/gems/1.9.1/gems/patinfo2csv-1.1.0/lib/patinfo2csv/cli.rb:44:in
`report': undefined method `length' for nil:NilClass (NoMethodError)
       from /usr/local/lib64/ruby/gems/1.9.1/gems/patinfo2csv-1.1.0/lib/patinfo2csv/cli.rb:23:in
`run'
       from /usr/local/lib64/ruby/gems/1.9.1/gems/patinfo2csv-1.1.0/bin/patinfo2csv:50:in
`<top (required)>'
       from /usr/local/bin/patinfo2csv:19:in `load'
       from /usr/local/bin/patinfo2csv:19:in `<main>'

Then I updated this error handling.

commit
result
$ patinfo2csv ../patinfo.yaml ../patinfo.csv ../rose_ean_short.txt 
patinfo[de] converted: 0 rows
-----
There is no chapters of Patinfo of the following 44 codes
[7680395410252,7680546230708,7680567240014,7680585920028,7680419530126,7680419530201,7680557010023,7680557010047,7680620650019,7680125480609,7680125480791,7680331860967,7680526090117,7680548800497,7680461800628,7680525620582,7680572230048,7680103790164,7680170970674,7680170970698,7680584360023,7680584360016,7680560330309,7680560330224,7680555480217,7680555490049,7680572640038,7680554090042,7680465150576,7680465150583,7680563580237,7680507870448,7680507870523,7680589000016,7680589000023,7680477180158,7680342130387,7680342130110,7680591650018,7680591650025,7680591650032,7680561990083,7680249570200,7680542410548]

74.283786439 sec.
view · edit · sidebar · attach · print · history
Page last modified on June 11, 2012, at 11:44 AM