Failed lookup does not fail, just do not generate Coords.
authorFredrik Unger <fred@tree.se>
Sun, 11 Nov 2012 19:35:07 +0000 (20:35 +0100)
committerFredrik Unger <fred@tree.se>
Sun, 11 Nov 2012 19:35:07 +0000 (20:35 +0100)
commite1bb8bad03ea58f9fdc6419fc1f251a17a7382d7
tree9ba79f221072e8367f099c9f66c8538b85a986f5
parent008eaaae8c6836b2e84b7ec29640d9ded6d57332
Failed lookup does not fail, just do not generate Coords.

A failed lookup used to fail with an error message. That in turn,
disturbs treecutter. Now if Coordinates are not found a Coord element
is not generated. The None values in the Address are converted to ''
or filled by a successful geocode.
Functions c and s needs refining. Empty elements are kept or
destroyed with the clean_db function.

clean_db function can clean code to become invalid xml so
use carefully. clean_db and the s/c functions will have
to be put in a docbook/lxml module at some point.
xinclude/address.py