[Zope3-Users] need help on

Albertas Agejevas alga at pov.lt
Wed Sep 6 06:27:12 EDT 2006


On Wed, Sep 06, 2006 at 01:32:29PM +0400, Denis Shaposhnikov wrote:
> I'm thinking on how to use Zope3 for my task and need some help. I
> have a web application which have different look for different
> users. Every user need to authenticate and have a some type like an
> Administrator, Operator, SomeManager, Just-A-User and so on. For
> example my webapp have an URL like `http://server/mywebapp/`. So,
> after authentication every user see `http://server/mywebapp/`
> according his type.
> 
> Could you give me advice or start point how to implement such behaviour
> in Zope3? The simplest way as I see is use different skins? But how to
> dynamically change the skin to user's type?

You can set the skin in a handler to BeforeTraverseEvent.  You can
find an example of such a subscriber at the bottom of
http://source.schooltool.org/trac/browser/trunk/schooltool/src/schooltool/app/browser/skin.py

Albertas


More information about the Zope3-users mailing list