comparison OpmlImport.py @ 218:699d8f1cebd4

unify imports, especially Qt imports. Use consistent super syntax
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sun, 27 Apr 2014 06:04:57 +0200
parents bb3c851b18b1
children
comparison
equal deleted inserted replaced
217:bb3c851b18b1 218:699d8f1cebd4
6 document = parse(filename) 6 document = parse(filename)
7 outlines = document.getElementsByTagName("outline") 7 outlines = document.getElementsByTagName("outline")
8 for outline in outlines: 8 for outline in outlines:
9 url = outline.getAttribute("xmlUrl") 9 url = outline.getAttribute("xmlUrl")
10 title = outline.getAttribute("title") 10 title = outline.getAttribute("title")
11 11
12 feed = Feed(title, url) 12 feed = Feed(title, url)
13 session.add(feed) 13 session.add(feed)
14 session.commit() 14 session.commit()