def import_tags(self, tag_nodes):
self.write_out(self.style.STEP('<STR_LIT>'))<EOL>for tag_node in tag_nodes:<EOL><INDENT>tag_name = tag_node.find(<EOL>'<STR_LIT>' % WP_NS).text[:<NUM_LIT:50>]<EOL>self.write_out('<STR_LIT>' % tag_name)<EOL>Tag.objects.get_or_create(name=tag_name)<EOL>self.write_out(self.style.ITEM('<STR_LIT>'))<EOL><DEDENT>
Import all the tags form 'wp:tag' nodes,
because tags in 'item' nodes are not necessarily
all the tags, then use only the nicename, because it's like
a slug and the true tag name may be not valid for url usage.