[web2py] composite views

2011-10-03 Thread Matt Broadstone
Good morning, I have a situation where I want to display composite views (a view for an object inside a view for its parent object). I have a class Connection that has a Profile associated with it. Profile can be one of a number of different subclasses (AProfile, BProfile, CProfile). I also

Re: [web2py] composite views

2011-10-03 Thread Bruno Rocha
You can always set if x: response.view = 'folder/file.html' elif y: response.view = '' Also, you can use: def action: return response.render(file.html, dict(context=context)) On Mon, Oct 3, 2011 at 10:16 AM, Matt Broadstone mbroa...@gmail.com wrote: Good morning, I have a

Re: [web2py] composite views

2011-10-03 Thread Matt Broadstone
On Mon, Oct 3, 2011 at 10:11 AM, Bruno Rocha rochacbr...@gmail.com wrote: You can always set if x: response.view = 'folder/file.html' elif y: response.view = '' Also, you can use: def action:      return response.render(file.html, dict(context=context)) I tried this with the following

Re: [web2py] composite views

2011-10-03 Thread Matt Broadstone
On Mon, Oct 3, 2011 at 10:49 AM, Matt Broadstone mbroa...@gmail.com wrote: On Mon, Oct 3, 2011 at 10:11 AM, Bruno Rocha rochacbr...@gmail.com wrote: You can always set if x: response.view = 'folder/file.html' elif y: response.view = '' Also, you can use: def action:      return