Re: [web2py] composite views

2011-10-03 Thread Matt Broadstone
On Mon, Oct 3, 2011 at 10:49 AM, Matt Broadstone wrote: > On Mon, Oct 3, 2011 at 10:11 AM, Bruno Rocha 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",

Re: [web2py] composite views

2011-10-03 Thread Matt Broadstone
On Mon, Oct 3, 2011 at 10:11 AM, Bruno Rocha 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 code in my

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 wrote: > Good morning, > I have a situation where I wan

[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 have