Adust the as_table tag to render a pick link if appropriate
The templates are adjusted to pass on a 'reference' value, which
is the url_name of the view from which the entity should be picked.
The as_table (and related) function(s) construct and then pass on
this argument and enable takes_contex so that we have access to the
context of the enclosing template.
We only extract ReferenceProperties that end with '_link_id' since
that is how all RP's are currently named. It is not possible to
create a field with the same name as the RP, as GAE will try to
interpret it's contents as the key of an entity before even calling
any function we can override.
Patch by: Sverre Rabbelier
{% ifnotequal prev_start -1 %}<a href="{{ start_base_url }}&start={{ prev_start }}">‹ Previous</a>{% endifnotequal %}
{% for page in pages %}
<a {% ifequal page.number current_page %} class="ae-page-selected ae-page-number" {% endifequal %}
href="{{ start_base_url }}&start={{ page.start }}">{{ page.number }}</a>
{% endfor %}
{% ifnotequal next_start -1 %}<a href="{{ start_base_url }}&start={{ next_start }}">Next ›</a>{% endifnotequal %}