Shailesh Kumar wrote:
Hi,
Is it possible to control the default page for a particular object based on the roles/permissions that a user has? The browser:defaultPage directive as such doesn't support this. Will I have to write a custom traverser or something like that for this? Thanx in advance. With regards,
-Shailesh
------------------------------------------------------------------------


_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users
i think it's not task for zcml.
simple solutions:

class MyIndexView:
   def __call__(self):
          if self.request.principal.id == 'zope.Manager':
                   self.request.responce.redirect('page1.html')
           elif:
                 self.request.responce.redirect('page2.html')
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to