On Fri, 2011-02-18 at 06:46 -0800, Jonathan Vanasco wrote:
> 1. I think it would be better if everything related to Pyramid/Pylons
> were on a single system ( ie: GitHub or BitBucket ).
I'd like that too, but not everyone is comfortable with a single system.
> 2. The Pyramid stuff should have better linkage on PylonsHQ.com ; its
> a text-link buried in paragraphs.
We're migrating from pylonshq.com to pylonsproject.org slowly.
> 3. I'm looking at the pyramid_sqla template. question.. i see stuff
> like this in the 'handlers':
>
> @action(renderer='index.html')
> def index(self):
> log.debug("testing logging; entered MainHandler.index()")
> return {'project':'myproject'}
>
> does this mean you can't switch out the templates in these handler
> methods ? ie: when you need to display different templates based on
> conditions ?
No. Use render_to_response.
def index(self):
if condition1(self.request):
return render_to_response('index1.html', {'project':'myproject'},
request)
else:
return render_to_response('index2.html', {'project':'myproject'},
request)
- C
--
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.