Removed some old plugin code

This commit is contained in:
ingkebil 2014-04-05 00:36:12 +02:00
parent 7e2af2e781
commit 5ce55e644c
2 changed files with 2 additions and 5 deletions

View File

@ -379,7 +379,7 @@ class %(classname)s(%(base_class)s):
return
skip_dialog_name='replace_recipes'
opml = OPML(self.oldest_article.value(), self.max_articles.value());
opml = OPML()
add_recipes_map = {}
replace_recipes_map = {}
for opml_file in opml_files:

View File

@ -2,16 +2,13 @@ __license__ = 'GPL 3'
__copyright__ = '2014, Kenny Billiau <kennybilliau@gmail.co'
__docformat__ = 'restructuredtext en'
import time
import xml.etree.ElementTree as ET
class OPML(object):
def __init__(self, oldest_article = 7, max_articles = 100):
def __init__(self):
self.doc = None # xml document
self.outlines = None # parsed outline objects
self.oldest_article = oldest_article
self.max_articles = max_articles
def load(self, filename):
tree = ET.parse(filename)