Re: Pyramid application templates

2010-11-11 Thread Alexandre Conrad
Hey Mike, I agree with you that having questions would be nice. And for people not liking the questions, maybe we could have them answered automatically by passing options such as --with-sqla --with-zodb --with-mako --with-urldispatch, ... Just an idea. We could also have just a bare bone

Re: Pyramid application templates

2010-11-11 Thread Mike Orr
On Wed, Nov 10, 2010 at 11:11 PM, Alexandre Conrad alexandre.con...@gmail.com wrote: Hey Mike, I agree with you that having questions would be nice. And for people not liking the questions, maybe we could have them answered automatically by passing options such as --with-sqla --with-zodb

Re: Pyramid paster template renderer globals?

2010-11-11 Thread Wichert Akkerman
On 11/11/10 02:00 , Chris McDonough wrote: Some of historical Pylons 1 globals don't make sense in the context of Pyramid, however (such as 'url', because there's no function that currently behaves exactly like it does). Some historical Pylons globals are only for backwards compatibility (e.g.

Re: Pyramid paster template renderer globals?

2010-11-11 Thread Wichert Akkerman
On 11/11/10 09:30 , Mike Orr wrote: Could we name it 'u' and pretend that Pylons always had it? 'url' does tend to conflict with local variables and I usually use 'u' for the local variable in that case, so this would just reverse the practice. And it would look OK next to 'c' and 'h'. For

Re: Pyramid paster template renderer globals?

2010-11-11 Thread Fernando Correa Neto
On Thu, Nov 11, 2010 at 6:58 AM, Wichert Akkerman wich...@wiggy.net wrote: On 11/11/10 09:30 , Mike Orr wrote: Could we name it 'u' and pretend that Pylons always had it? 'url' does tend to conflict with local variables and I usually use 'u' for the local variable in that case, so this would

Re: Pyramid paster template renderer globals?

2010-11-11 Thread Mike Orr
On Thu, Nov 11, 2010 at 12:58 AM, Wichert Akkerman wich...@wiggy.net wrote: On 11/11/10 09:30 , Mike Orr wrote: Could we name it 'u' and pretend that Pylons always had it? 'url' does tend to conflict with local variables and I usually use 'u' for the local variable in that case, so this would

Re: Pyramid application templates

2010-11-11 Thread Wichert Akkerman
On 11/11/10 05:05 , Mike Orr wrote: I'd like to see one template equivalent to the Pylons 1 template, with questions for SQLAlchemy and the template engine. The templates are pretty straightforward even with the conditionals. Looking forward, we'll also need questions for auth and ZODB. (Yes,

Re: Pyramid paster template renderer globals?

2010-11-11 Thread Chris Rossi
On Thu, Nov 11, 2010 at 7:51 AM, Wichert Akkerman wich...@wiggy.net wrote: On 11/11/10 13:48 , Chris Rossi wrote: On Thu, Nov 11, 2010 at 6:40 AM, Wichert Akkerman wich...@wiggy.net mailto:wich...@wiggy.net wrote: On 11/11/10 12:38 , Wichert Akkerman wrote: On 11/11/10 12:05 ,

Re: Pyramid paster template renderer globals?

2010-11-11 Thread Mike Orr
I guess ${route_url()} is no longer or worse than ${h.url_for()}, which is what Pylons had before url(). And url() has always had a problem in being the same as a previously-popular local variable. It would still be nice to put 'u' as a commented default, so that users can just uncomment it if

Re: Pyramid application templates

2010-11-11 Thread Michael Haubenwallner
On Nov 11, 9:46 am, Mike Orr sluggos...@gmail.com wrote: On Wed, Nov 10, 2010 at 11:11 PM, Alexandre Conrad We could also have just a bare bone Pyramid app with no template engine an no sqla/zodb. Such a setup could be for a webservice app that only returns JSON data, no HTML. That sounds

Re: Pyramid application templates

2010-11-11 Thread Michael Haubenwallner
On Nov 11, 8:11 am, Alexandre Conrad alexandre.con...@gmail.com wrote: Hey Mike, I agree with you that having questions would be nice. And for people not liking the questions, maybe we could have them answered automatically by passing options such as --with-sqla --with-zodb --with-mako

Any sample applications for Pyramid?

2010-11-11 Thread Gopalakrishnan Subramani
Do you have any sample application using Pyramid, Sqlalchemy, Mako and Authentication and Authorization? I have done sites using Pylons and looking forward to learn Pyramid and convert the pylons sites to Pyramid. Regards, Gopalakrishnan -- You received this message because you are

Re: Pyramid paster template renderer globals?

2010-11-11 Thread Mike Orr
On Thu, Nov 11, 2010 at 8:26 AM, Mike Orr sluggos...@gmail.com wrote: I guess ${route_url()} is no longer or worse than ${h.url_for()}, which is what Pylons had before url(). And url() has always had a problem in being the same as a previously-popular local variable. It would still be nice to

Re: Pyramid paster template renderer globals?

2010-11-11 Thread Chris McDonough
On Thu, 2010-11-11 at 00:30 -0800, Mike Orr wrote: On Wed, Nov 10, 2010 at 11:16 PM, Chris McDonough chr...@plope.com wrote: On Wed, 2010-11-10 at 21:53 -0800, Mike Orr wrote: We don't have url in there now. The equivalent of url (as of about 2 hours ago when I checked it in) would be:

Re: Pyramid application templates

2010-11-11 Thread Mike Orr
On Thu, Nov 11, 2010 at 2:29 AM, Michael Haubenwallner michael.haubenwall...@gmail.com wrote: On Nov 11, 8:11 am, Alexandre Conrad alexandre.con...@gmail.com wrote: Hey Mike, I agree with you that having questions would be nice. And for people not liking the questions, maybe we could have

Re: Pyramid application templates

2010-11-11 Thread Andrew Sawyers
On 11/11/10 8:41 AM, Mike Orr sluggos...@gmail.com wrote: On Thu, Nov 11, 2010 at 2:29 AM, Michael Haubenwallner michael.haubenwall...@gmail.com wrote: On Nov 11, 8:11 am, Alexandre Conrad alexandre.con...@gmail.com wrote: We could also have just a bare bone Pyramid app with no template

Re: Any sample applications for Pyramid?

2010-11-11 Thread Mike Orr
On Thu, Nov 11, 2010 at 9:02 AM, Gael Pasgrimaud g...@gawel.org wrote: Hi, On Thu, Nov 11, 2010 at 12:17 PM, Gopalakrishnan Subramani gopalakrishnan.subram...@gmail.com wrote: Do you have any sample application using Pyramid, Sqlalchemy, Mako and Authentication and Authorization? Not yet

Re: Pyramid paster template renderer globals?

2010-11-11 Thread Jan Koprowski
I would like to add that one letter variables in templates made some complications using 'pdb' where 'h' or 'u' have a special meaning. Frind of mine told me about this few weeks ago regard to Pylons 9.7. From this point of view avoiding short, one character values in namespace is a good idea.