[Grok-dev] View URLs?

Kenneth Miller xkenneth at gmail.com
Wed Jun 25 01:57:50 EDT 2008


      So I've got a single app with an exra Grok.Container and  
Grok.Model. I've defined ONE index view that inherits from  
zope.Interface so that it's available to essentially any Model/ 
Container and the app. The way this is setup allows me to use the  
index template to provide a consistent look and feel to my app, and  
particularly navigation. The problem I'm currently having is that my  
template uses view.url('this') methods to access other views, which  
works fine, but only when you're viewing the base app. For example

The format for below is as follows:

    Link  -> Generated result.

    MyPage1 -> app/mypage1
    MyPage1 -> app/container/mypage1        when this should be  
pointing to app/mypage1

How should I handle this? There's no url methods attached to the App  

Should I rearrange the way I handle index's/templates?

You can view my latest source code here:


Thanks for your time!

Kenneth Miller

More information about the Grok-dev mailing list