Example #1
0
 def __init__(self, filename, host):
     PlugPersist.__init__(self, filename)
     if not self.data: self.data = LazyDict()
     if 'names' not in self.data: self.data['names'] = []
     if 'urls' not in self.data: self.data['urls'] = {}
     if 'feeds' not in self.data: self.data['feeds'] = {}
     if 'host' not in self.data: self.data['host'] = host
     self.feeds = {}
Example #2
0
 def __init__(self, name):
     PlugPersist.__init__(self, name)
Example #3
0
 def __init__(self, filename):
     PlugPersist.__init__(self, filename)
     self.data.channels = self.data.channels or {}
     self.data.whitelist = self.data.whitelist or []
     self.data.descriptions = self.data.descriptions or {}