view · edit · sidebar · attach · print · history

20130527-debug-patinfo-ebook-login-redirect

<< | Index | >>


Summary

  • Debug Patinfo ebook (updater, export, ebps)

Commits

Index


Debug Patinfo-ebook

ywesee@thinpower /var/www/oddb.org $ ls -la data/downloads/patinfo.yaml*
-rw-r--r-- 1 apache apache 173909987 27. Mai 02:31 data/downloads/patinfo.yaml
-rw-r--r-- 1 apache apache  24360804 27. Mai 02:42 data/downloads/patinfo.yaml.gz
-rw-r--r-- 1 apache apache  24360908 27. Mai 02:42 data/downloads/patinfo.yaml.zip

And, Current warning mail.

Message:
YamlExporter#export_patinfos method is still running,
but I found some missing Patinfo document data.
This may cause an error in export ebooks process of ebps.

There is no 'de' description of Patinfo of the following
Swissmedic Sequence (Company, Product, Numbers):
[" 1. Ebi-Pharm AG, Mucedokehl D5, 50408, 01\n"]
There is no 'fr' description of Patinfo of the following
Swissmedic Sequence (Company, Product, Numbers):
[" 1. Iromedica AG, Kytta, 20713, 02\n", " 2. Laboratoire Jacques Reboh et fils SA, Dr. Reckeweg R 2 Aurin, 45034, 01\n", " 3. Alpinamed AG, Swidro Wallwurz-Gel, 56941, 01\n", " 4. Pierre Fabre (Suisse) S.A., Dexeryl, 60404, 01\n", " 5. Coop Vitality Health Care GmbH, Coop Vitality Ibuprofen 200 mg, 62695, 01\n", " 6. OmniVision AG, LatanoTim-Vision, 62696, 01\n"]
% scp yasaka@62.12.131.46:/var/ebps/data/books/meddrugs_ch_de_patinfo_stanza.epub .

Then,
1 Patinfo dose not have title (Does not exists in swissmedicinfo XML?)
I found this PI in compendium.ch (http://compendium.ch/mpub/pnr/23684/html/de)

  • 40396 (A.Vogel Knoblauch-Kapseln?)

Then, I run updater for compendium.ch

% ruby jobs/update_company_textinfos2 "Bioforce AG"
  • Updater (Swissmedicinfo, compendium.ch) works fine.
  • Yaml EXporter also works.
  • Ebook generator Job does not have already any problem.

Transparent login redirect

login-redirect makes redirection to tap-page.(always)

HTTP 303

Currently, ODDB::Session works with remember_me option

    def login
      # @app.login raises Yus::YusError
      @user = @app.login(user_input(:email), user_input(:pass))
      if cookie_set_or_get(:remember_me)
        set_cookie_input :remember, @user.generate_token
        set_cookie_input :email, @user.email
      else
        @cookie_input.delete :remember
      end 
      @user
    rescue Yus::YusError
    end 
    def login_token
      # @app.login raises Yus::YusError
      email = get_cookie_input(:email)
      token = get_cookie_input(:remember)
      if email && token && !token.empty?
        @user = @app.login_token email, token
        set_cookie_input :remember, @user.generate_token
        @user
      end 
    rescue Yus::YusError
    end
view · edit · sidebar · attach · print · history
Page last modified on May 27, 2013, at 07:04 AM