Good catch -- we should make that change. In your case, you can just remove
that line.
Anthony
On Wednesday, June 6, 2012 9:45:09 AM UTC-4, Doug Philips wrote:
>
> I'm getting ready to deploy my first web2py application.
> First off: THANK YOU!
> I couldn't have pulled this off (I'm a systems programmer, not a web
> programmer).
>
> While I have only one application to deploy, I am hoping there are others.
> As such, I want to use welcome as the 'landing page' which will show
> what the other available applications are.
>
> So, I thought, why not just tweak up the welcome app, it has a nice,
> friendly, 'welcoming' name even. :-)
>
> This app doesn't need authentication, so I've gone into the models,
> etc. and removed all the references to Auth and auth and such.
>
> When I did that, I started to get this weird 'False' showing up in the
> upper right of the page.
>
> I eventually tracked it down to applications/welcome/views/layout.html:
> line 79 (or thereabouts):
> <div id="navbar">{{='auth' in globals() and
> auth.navbar(separators=(' ' ,' | ',''))}}</div>
>
> So should I just remove that line?
> It looks like it is written to be 'self-adusting'.
> I "fixed" my mutant welcome app by changing it to:
> <div id="navbar">{{=('auth' in globals() and
> auth.navbar(separators=(' ' ,' | ',''))) or ''}}</div>
>
> Hopefully this question makes sense?
> I guess I'd either like to see that change adopted or a comment added
> to layout.html indicating that it is OK to remove that line (really, I
> have no idea if that would break anything which is why I didn't remove
> it already, I'm under the gun to get the app out).
>
> Thanks,
> --Doug
>