[web2py] Re: conditional block insert

2017-04-24 Thread Pierre
found the bogue.a nasty supernumerary {{pass}}  in the sidebar.html

thank you  guys for your patience and perseverence...



-- 
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.


[web2py] Re: conditional block insert

2017-04-24 Thread Anthony
In general, that approach should work, so you'll have to show your code for 
further diagnosis.

Anthony

On Monday, April 24, 2017 at 9:49:04 AM UTC-4, Pierre wrote:
>
> hello everyone,
>
> {{block left_sidebar}}
> {{if auth.has_membership('manager'):}}
>{{include 'manager_sidebar.html'}}
> {{else:}}
>{{include 'sidebar.html'}}
> {{pass}}
> {{end}}
>
> for some reason this doesn't work. It inserts a mixture of the two 
> sidebars. If i move blocks inside of the if same problem?? there seems 
> to be a conflict between the two includes ?
>

-- 
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.