"the lock" is not web2py nor css nor html dependant. "the lock" shows when 
your connection is secured by ssl, usually accessing the page as https://, 
but you have to configure correctly ssl protection on the webserver 
(apache, lighttpd, nginx, etc)

On Sunday, February 24, 2013 10:35:43 PM UTC+1, greaneym wrote:
>
> still learning about routes.
>
> on a linux install with v2.3.2, python2.6 and this routes.py, with the 
> admin
> welcome, examples apps installed.
>
> I modified the models/menu.py so that https is turned on,
> by adding this at the top:
>
> session.secure()
> if not request.is_https:
>     redirect('https://%s/%s' % (request.env.http_host, 
> request.application))
>
>
> then using this routes.py
>
> # Example: support welcome, admin, app and myapp, with myapp the default:
>
> routers = dict(
>
>     # base router
>     BASE=dict(
>         default_application='examples',
>     ),
> )
>
> when the domain page is loaded, I see the examples page and https is shown 
> in the url path, but now  I don't see the
> lock icon in the upper right hand corner of the page. What is controlling 
> this?
> Is it css or python controller/model file, or something else? What shuts 
> this off?
>
> When there is no routes.py, and the welcome page loads, I do see the lock 
> icon
> on the page, which allows me to view the certificate if I want.
>
> How do I get the lock icon to appear on the default application with https 
> enabled?
>
> thanks
>
>

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to