Re: [web2py] hide functionality from non authenticated users

2011-11-15 Thread Kenneth Lundström
Whats wrong in what you just described? {{if c != None:}} Kenneth I want to do the following def some_function(): a = ... b = ... if auth.is_logged_in(): c = ... else: c = None return (a=a,b=b,c=c) And in the view some_function.html {{if c is not

[web2py] hide functionality from non authenticated users

2011-11-15 Thread thodoris
I want to do the following def some_function(): a = ... b = ... if auth.is_logged_in(): c = ... else: c = None return (a=a,b=b,c=c) And in the view some_function.html {{if c is not None:}} do something here {{pass}} which is the best practice to do it?