On Sun, May 25, 2008 at 11:49 AM, Cliff Wells <[EMAIL PROTECTED]> wrote:
>
>
> On Sat, 2008-05-24 at 16:21 -0700, Mike Orr wrote:
>
>> But then that gets into the issue of the site template.  If the inner
>> app should be shown within the global header and sidebar, then you'd
>> have to inherit the site template -- which doesn't work well across
>> apps, plus you'd have to know what variables to set for the site
>> template.  Or the outer app could have a controller ACTION (not a
>> whole controller) that calls the inner app to get the page content,
>> and then plugs that into its template.  The action could emulate a
>> WSGI server, possibly using WebOb's application-wrapper for
>> convenience.
>
> Long ago the topic of portlet-style sites came up on this list and Ian
> suggested using a subrequest and paste.recursive.  Wouldn't a web helper
> that could do a subrequest be a possible solution?  Rather than the
> plugin inheriting the site template, the site template would perform a
> subrequest to retrieve the plugin's html.

It could.  I'm not really a fan of subrequests, seems like a lot of
overhead.  But in some cases it may be the simplest solution.

-- 
Mike Orr <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to