X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FMain.hs;h=663c51ce0ea206b649ad1565659eeca180b521c2;hb=4fc769d60f0cac3b4a0cf38add8d8e883583bd61;hp=10b1acecd0382cba9660198c2d07368ad353eef1;hpb=ff00750eb841c935160ebc21dd5a9fedbb64444f;p=dead%2Fhtsn-import.git diff --git a/src/Main.hs b/src/Main.hs index 10b1ace..663c51c 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -172,6 +172,11 @@ import_file cfg path = do let errmsg = "Could not unpickle Odds_XML." maybe (return $ ImportFailed errmsg) migrate_and_import m + | dtd == "weatherxml.dtd" = do + let m = unpickleDoc Weather.pickle_message xml + let errmsg = "Could not unpickle weatherxml." + maybe (return $ ImportFailed errmsg) migrate_and_import m + | otherwise = do let infomsg = "Unrecognized DTD in " ++ path ++ ": " ++ dtd ++ "."