1. Massimo Di Pierro
  2. web2py

Source

web2py / applications / examples / views / global / vars.html

{{extend 'layout.html'}}
{{import cgi}}
<h1>Docs for {{=title}}</h1>

<div align="right">
[ <a href="http://docs.python.org/tut/">Python Tutorial</a> ]
[ <a href="http://docs.python.org/lib/">Python Libraries</a> ]
[ <a href="/{{=request.application}}/static/epydoc/index.html">web2py epydoc</a> ]
</div>

<h2>Description</h2>

<br/>
{{if t:}}
{{=t}}{{if d:}} extends {{=d}}{{pass}}
{{pass}}
<br/>
{{pass}}

{{if doc:}}<br/><br/>{{=CODE(str(doc),language=None,counter=None)}}{{pass}}
<br/><br/>

<h2>Attributes</h2>

{{keys=attributes.keys(); keys.sort()}}
<table>
<tr><td colspan=2><hr/></td></tr>
{{for a in keys:}}
{{doc1,t1,c1,d1=attributes[a]}}
<tr>
<td>{{=A(a,_href=URL(r=request,args=a.split('.')))}}</td>
<td>
{{if t1:}}
{{=t1}}{{if d1:}} extends {{=d1}}{{pass}}
{{if c1:}} belongs to class {{=c1}}{{pass}}
<br/>
{{pass}}
{{if doc1:}}{{=XML(cgi.escape(str(doc1)).replace(chr(13),'<br/>'))}}{{pass}}
</td>
</tr>
<tr><td colspan=2><hr/></td></tr>
{{pass}}
</table>