On Fri, Feb 13, 2009 at 7:09 AM, annet <[email protected]> wrote:
> Another question: when I expose user there are four buttons: admin,
> request, session and response, which when you click on them display
> information I don't wish to expose to the visitor. How do I get rid of
> them and what is their function?

When you create a new app with the web interface the file
views/generic.html has the following in it.

{{extend 'layout.html'}}
{{=BEAUTIFY(response._vars)}}


<button 
onclick="document.location='{{=URL("admin","default","design",args=request.application)}}'">admin</button>
<button onclick="$('#request').slideToggle()">request</button>
<div class="hidden" id="request"><h2>request</h2>{{=BEAUTIFY(request)}}</div>
<button onclick="$('#session').slideToggle()">session</button>
<div class="hidden" id="session"><h2>session</h2>{{=BEAUTIFY(session)}}</div>
<button onclick="$('#response').slideToggle()">response</button>
<div class="hidden" id="response"><h2>response</h2>{{=BEAUTIFY(response)}}</div>
<script>$('.hidden').hide();</script>

Just remove the

<button 
onclick="document.location='{{=URL("admin","default","design",args=request.application)}}'">admin</button>
<button onclick="$('#request').slideToggle()">request</button>
<div class="hidden" id="request"><h2>request</h2>{{=BEAUTIFY(request)}}</div>
<button onclick="$('#session').slideToggle()">session</button>
<div class="hidden" id="session"><h2>session</h2>{{=BEAUTIFY(session)}}</div>
<button onclick="$('#response').slideToggle()">response</button>
<div class="hidden" id="response"><h2>response</h2>{{=BEAUTIFY(response)}}</div>
<script>$('.hidden').hide();</script>

part and those buttons will not longer show up.

The views/generic.html file is the view that a particular controller
function uses when there is not a view file specifically created for
it, the default view if you will.

Paul

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to