Hi Alan and Anthony,

@Alan,

This:

{{for row in rows:}}
  <tr>
    <td>{{=db.Edge.byNodeID.represent(row.byNodeID, row)}}</td>
    <td>{{=db.Edge.ofNodeID.represent(row.ofNodeID, row)}}</td>
  </tr>
{{pass}}

... results in an empty <td></td> element ...


@Anthony,

> Instead of the above, use:
>
> @auth.requires(lambda: auth.has_membership(HUB) or
> auth.has_membership(ADMIN))

Thanks for your advice, I made the changes in my code.


> > rows=rows=db(db.HubEdge.hubID==session.hubadminID).select(db.HubEdge.ALL)
> > return dict(rows=rows)
>
> Why do you have rows=rows?

I had a look at the code, there's no rows=rows, I guess it's a copy
and paste error.


Kind regards,

Annet.

Reply via email to