예제 #1
0
def wiki():

    wiki = auth.shotwiki()
    wiki_ctrl = Storage()

    if str(request.args(0)).startswith('_'):
        wiki_ctrl.cmd    = request.args(0)
        wiki_ctrl.slug   = request.args(1)
        wiki_ctrl.render = auth.get_wiki_rendering(wiki_ctrl.slug )
        response.flash_custom_display = True # hide default wiki flash messages
    else:
        wiki_ctrl.slug = request.args(0)

        if wiki_ctrl.slug == 'start':
            if config.display_flash_schedule:
                response.flash = auth.get_shotwiki_page(slug_base = 'market-schedule')

    if str(request.args(0)) != '_preview':
        wiki['wiki_ctrl'] = wiki_ctrl

    if wiki_ctrl.slug and str.lower(wiki_ctrl.slug) == 'zwillingsmarkt':
        #response.b_noindex = True
        redirect(URL('main','wiki', args = ['start']))

    return wiki
예제 #2
0
def wiki():
    
    wiki = auth.shotwiki()
    wiki_ctrl = Storage()

    if str(request.args(0)).startswith('_'):
        wiki_ctrl.cmd    = request.args(0)
        wiki_ctrl.slug   = request.args(1)
        wiki_ctrl.render = auth.get_wiki_rendering(wiki_ctrl.slug )
        response.flash_custom_display = True # hide default wiki flash messages
    else:
        wiki_ctrl.slug = request.args(0)
        
        if wiki_ctrl.slug == 'start':
            if config.display_flash_schedule:
                response.flash = auth.get_shotwiki_page(slug_base = 'market-schedule')
    
    if str(request.args(0)) != '_preview':
        wiki['wiki_ctrl'] = wiki_ctrl
        
    return wiki