def index():
# return auth.wiki()
return dict()
def post():
findname = request.args[0]
return dict(specs=db(db.specs.name==findname).select())
{{extend 'layout.html'}}
{{#=content}}
{{=LOAD('default','post.load',args=['merlin'],target='spec',ajax=True)}}
{{extend 'layout.html'}}
{{#=content}}
{{=LOAD('default','post.load',args=['merlin'],target='spec',ajax=True)}}
{{#extend 'layout.html'}}
{{for row in specs:}}
<div>
<table border="1">
<tr><td colspan="2">Specifications</td></tr>
<tr><td>Aircraft</td><td>{{=row.name}}</td></tr>
<tr><td>Wing Span</td><td>{{=row.wingspan}}</td></tr>
</table>
</div>
{{pass}}
…
<script type="text/javascript"><!--
web2py_component('/test/default/post.load/merlin','spec');
//--></script><div id="spec">loading...</div>
…
def index():
return auth.wiki()
# return dict()
def post():
findname = request.args[0]
return dict(specs=db(db.specs.name==findname).select())
{{extend 'layout.html'}}
{{=content}}
{{#=LOAD('default','post.load',args=['merlin'],target='spec',ajax=True)}}
## Index
page content
[[NEWLINE]]
@{component:LOAD('default','post.load',args=['merlin'],target='spec',ajax=True)}
Index
Page content
ERROR: list index out of range
Excellent.
Great to know that there are others out there to assist.