示例#1
0
文件: admin.py 项目: pombredanne/karl
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
示例#2
0
文件: admin.py 项目: zagy/karl
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
示例#3
0
 def _call_fut(self, name, db='dummy_uri'):
     from repoze.postoffice.queue import open_queue
     return open_queue(db, name)
示例#4
0
文件: admin.py 项目: Falmarri/karl
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)
示例#5
0
 def _call_fut(self, name, db='dummy_uri'):
     from repoze.postoffice.queue import open_queue
     return open_queue(db, name)