get_name() improved
Stefan Strigler
steve at zeank.in-berlin.de
Wed Apr 5 21:07:44 EST 2006
Here's a simple patch to add little improvement to
planet/__init__.py:get_name() by letting it consider a given "link" tag
if everything else fails plus skipping empty tags
13:07:04 zeank at fiddl:~/planet$ diff planet/__init__.orig planet/__init__.py
482,483c482,483
< for key in ("name", "title"):
< if self.has_key(key) and self.key_type(key) != self.NULL:
---
> for key in ("name", "title", "link"):
> if self.has_key(key) and self.key_type(key) != self.NULL and self.get_as_string(key) != "":
More information about the devel
mailing list