I am trying to use the LOAD component and i have some questions. I
would like to pass an argument to the LOAD function which is a table
row but it is converted to a string and i can't access the row
attributes. There is a way to pass them by value but i would prefer to
pass the row instead (or a dictionary if possible). So
in my index.html i have
# where my_tables = db().select(db.my_tables.ALL) is returned from
default/index
{{for table in my_tables:}}
{{=LOAD('info', 'tables_info.load', vars={'table':table},
ajax=True)}}
{{pass}}
i have defined the controller tables_info in info.py to return the the
dictionary that it gets
def tables_info():
table = request.vars.table
return dict(table=table)
And i have also defined the view info/tables_info.load where is the
things that i would like to present
<div class="tables_info">
{{=type(table)}}
{{=table.key}}
</div>
Here i can't access the table.keys cause table is of type <str>. What
can i do in this case?