예제 #1
0
 def setup_with_tools(self):
     setup_global_objects()
     g.set_app('wiki')
     _clear_subscriptions()
     _clear_notifications()
     ThreadLocalORMSession.flush_all()
     ThreadLocalORMSession.close_all()
     self.pg = WM.Page.query.get(app_config_id=c.app.config._id)
     M.notification.MAILBOX_QUIESCENT = None  # disable message combining
예제 #2
0
 def setup_with_tools(self):
     setup_global_objects()
     g.set_app('wiki')
     _clear_subscriptions()
     _clear_notifications()
     ThreadLocalORMSession.flush_all()
     ThreadLocalORMSession.close_all()
     self.pg = WM.Page.query.get(app_config_id=c.app.config._id)
     M.notification.MAILBOX_QUIESCENT = None  # disable message combining
예제 #3
0
파일: project.py 프로젝트: apache/allura
def set_nav(neighborhood):
    project = neighborhood.neighborhood_project
    if project:
        c.project = project
        g.set_app('admin')
    else:
        admin_url = neighborhood.url() + '_admin/'
        c.custom_sidebar_menu = [
            SitemapEntry('Overview', admin_url + 'overview'),
            SitemapEntry('Awards', admin_url + 'accolades')]
예제 #4
0
def set_nav(neighborhood):
    project = neighborhood.neighborhood_project
    if project:
        c.project = project
        g.set_app('admin')
    else:
        admin_url = neighborhood.url() + '_admin/'
        c.custom_sidebar_menu = [
            SitemapEntry('Overview', admin_url + 'overview'),
            SitemapEntry('Awards', admin_url + 'accolades')]
예제 #5
0
def setup_with_tools():
    setup_global_objects()
    g.set_app('bugs')
예제 #6
0
def setup_with_tools():
    setup_global_objects()
    g.set_app('wiki')
예제 #7
0
파일: test_roles.py 프로젝트: apache/allura
def setUp():
    setup_basic_test()
    setup_global_objects()
    h.set_context('test', neighborhood='Projects')
    c.project.install_app('blog', 'blog')
    g.set_app('blog')
예제 #8
0
def setup_with_tools():
    setup_global_objects()
    g.set_app('wiki')
예제 #9
0
def setup_with_tools():
    setup_global_objects()
    h.set_context('test', neighborhood='Projects')
    c.project.install_app('feedback', 'feedback')
    g.set_app('feedback')
예제 #10
0
def setUp():
    setup_basic_test()
    setup_global_objects()
    h.set_context('test', neighborhood='Projects')
    c.project.install_app('blog', 'blog')
    g.set_app('blog')