Beispiel #1
0
 def __init__(self, root, poroot, zodb_path, queue_name):
     self.root = root
     self.queue = find_queue(poroot, queue_name, zodb_path)
     dispatcher = IMailinDispatcher(self.root)
     dispatcher.default_tool = 'blog'
     dispatcher.text_scrubber = 'karl.utilities.textscrub:text_scrubber'
     self.dispatcher = dispatcher
Beispiel #2
0
 def __init__(self, root, poroot, zodb_path, queue_name):
     self.root = root
     self.queue = find_queue(poroot, queue_name, zodb_path)
     dispatcher = IMailinDispatcher(self.root)
     dispatcher.default_tool = 'blog'
     dispatcher.text_scrubber = 'karl.utilities.textscrub:text_scrubber'
     self.dispatcher = dispatcher
Beispiel #3
0
 def test_it(self):
     from repoze.postoffice.queue import find_queue
     db = DummyDB({}, {'one': 'foo'})
     self.assertEqual(find_queue(db.root(), 'one'), 'foo')
Beispiel #4
0
 def test_it(self):
     from repoze.postoffice.queue import find_queue
     db = DummyDB({}, {'one': 'foo'})
     self.assertEqual(find_queue(db.root(), 'one'), 'foo')