While the original problem still exists, i think I have found a
problem with the rating plugin. Specifically the original code
def rate():
N=8
pm = db.plugin_rating_master
pa = db.plugin_rating_aux
tablename = request.vars.tablename
record_id = request.vars.record_id
print '----in rating',tablename,record_id
.....
I think should be
def rate():
N=8
pm = db.plugin_rating_master
pa = db.plugin_rating_aux
tablename = request.args[0]
record_id = request.args[1]
print '----in rating',tablename,record_id
....
Now why isn't the rating plugin showing for the other records on the
screen???
On Aug 21, 7:34 am, "david.waldrop" <[email protected]> wrote:
> When using the rating plug in I cannot get the following to work as I
> expect:
>
> {{extend 'layout.html'}}
>
> <table id="sortpage" class="display">
> <tbody>
> {{for r in results:}}
> <tr>
> <td>{{=r.name}}</td>
> <td>{{=r.posted}}</td>
> <td>{{=plugin_rating('meeting',r.id)}}</td></tr>
> {{pass}}
> </tbody>
> </table>
>
> the rating is only displayed for the 1st record in results, nothing is
> shown for the other records. I looked at the slices code to try and
> see how it worked, but it seesm to be using a different version of
> ratings. Any suggestions would be much appreciated.