Beispiel #1
0
 def _init(self, maxsize):
     Queue._init(self, maxsize)
     nodes = Access(self.events).get_entry(maxsize)
     for node in nodes:
         try:
             self.queue.append(Entry(node['raw_url'], self.reddit))
             self.events.on_adding_to_queue(node['raw_url'])
         except EntryError:
             # TODO Remove old entry from DB
             pass
Beispiel #2
0
 def _init(self, maxsize):
     Queue._init(self, maxsize)
     self.all_items = set()
	def _init(self, maxsize):
		Queue._init(self, maxsize)
		self.all_items = set()
Beispiel #4
0
 def _init(self, maxsize=0):
     """
     SetQueue constructor constructing the base Queue object and an internal set object
     """
     Queue._init(self, maxsize)
     self.all_items = set()
Beispiel #5
0
 def _init(self, maxsize):
     Queue._init(self, maxsize)
     self.all_items = set()
     logger.debug('__INIT__ SetQueue()')