[Zope3-Users] default page based on roles?
Garanin Michael
garanin at m-lan.ru
Wed Feb 28 10:47:04 EST 2007
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 at 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')
More information about the Zope3-users
mailing list