if @cache.action(time_expire=exp_time, cache_model=cache.disk, vars=False, public=False, lang=True) def contacts(): response.title=T('Контакты') response.not_show_func = True h = CAT( H3(T('Отзывы, Обсуждение, Жалобы, Благодарности')), T('Можно найти в ветке на'),' ', A(T('международном форуме о криптовалютах'), _href='https://bitcointalk.org/index.php?topic=307648.0', _target='_blank'),'. ', T('Там же можно сообщить об ошибке'),'.', H3('Обратная связь'), T('Почтовый ящик'),': ', 'supp...@7pay.in',BR(), T('Skype'),': ', 'i-creator' ) return dict(h =h)
If 1-st call - al ok! then - view run as response.title and response not_show_func is null view is generic: {{extend 'layout.html'}} {{if not response.not_show_func:}} <h2>{{=' '.join(x.capitalize() for x in request.function.split('_'))}}</h2> {{pass}} {{if len(response._vars)==1:}} {{=BEAUTIFY(response._vars.values()[0])}} {{elif len(response._vars)>1:}} {{=BEAUTIFY(response._vars)}} {{pass}} {{if request.is_local:}} {{=response.toolbar()}} {{pass}} -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.