[Python-checkins] r60868 - tracker/instances/jobs/html/home.html

martin.v.loewis python-checkins at python.org
Sat Feb 16 20:17:40 CET 2008


Author: martin.v.loewis
Date: Sat Feb 16 20:17:40 2008
New Revision: 60868

Modified:
   tracker/instances/jobs/html/home.html
Log:
Key home page by role, not permission.


Modified: tracker/instances/jobs/html/home.html
==============================================================================
--- tracker/instances/jobs/html/home.html	(original)
+++ tracker/instances/jobs/html/home.html	Sat Feb 16 20:17:40 2008
@@ -4,10 +4,10 @@
  replace it with a greeting message, or a different list of offers or
  whatever. It's a good idea to have the offers on the front page though
 -->
-<span tal:condition="python:request.user.hasPermission('View', 'issue')"
+<span tal:condition="python:request.user.hasRole('Editor')"
     tal:replace="structure python:db.offer.renderWith('index',
-    sort=[('-', 'activity')], group=[('-', 'status')], filter=['status'],
+    sort=[('-', 'activity')], group=[('+', 'status')], filter=['status'],
     columns=['id','activity','title','creator','status'],
     filterspec={'status':['1','2','3']})" />
-<span tal:condition="python:not request.user.hasPermission('View', 'issue')"
+<span tal:condition="python:not request.user.hasRole('Editor')"
     tal:replace="structure python:db.offer.renderWith('item')" />


More information about the Python-checkins mailing list