A new idea: Don't put the robots value ("index,follow" or "NONE,NOARCHIVE") directly into the context -> Put only the bool "anonymous_view" into the context!
Then we can make this:
Code:
<meta name="robots" content="{% if anonymous_view %}index,follow{% else %}NONE,NOARCHIVE{% endif %}" />
We can used the "anonymous_view" information in other way, too. e.g. for a google adsense block and for this:
Code:
{% if not anonymous_view %}<div id="admin">{% lucidTag admin_menu %}</div>{% endif %}
With this, we have another benefit: The plugin manager variable "no_rights_error" is obsolete and we can remove the code for this! Nice.
We should remove "robots" from the context in v0.9 so the changes are not backwards-incompatible, now.
remove "robots" and "no_rights_error" in v0.9:
http://trac.pylucid.net/ticket/161
add "anonymous_view" in
http://trac.pylucid.net/changeset/1447