def _get_postoffice_queue(context): zodb_uri = get_setting(context, 'zodbconn.uri.postoffice') queue_name = get_setting(context, 'postoffice.queue') if zodb_uri and queue_name: db = context._p_jar.db().databases['postoffice'] return open_queue(db, queue_name) return None, None
def _call_fut(self, name, db='dummy_uri'): from repoze.postoffice.queue import open_queue return open_queue(db, name)
def _get_postoffice_queue(context): zodb_uri = get_setting(context, 'postoffice.zodb_uri') queue_name = get_setting(context, 'postoffice.queue') return open_queue(zodb_uri, queue_name)