[Zope3-Users] redirect to views dynamically

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Feb 6 15:03:59 EST 2007


On Tuesday 06 February 2007 15:01, Dennis Schulz wrote:
> one question about views:
>
> I know that is is possible to register a default view for an object.
> Is there a way to decide, at runtime, which view to call?
>
> Maybe a traversal adapter can do this,but is there an easier way?

Register a default view that implements the logic selecting a view 
dynamically. Then you can redirect to this view. The Selected Management View 
does something like that.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list