Re: how to use several Bases with config.include and a shared DBSession

2011-12-17 Thread Chris Withers
On 16/12/2011 23:48, Michael Bayer wrote: I was just looking to express (and top post, its just easier) that right now the sharing the base patterns arent' nailed down, but that it can be whatever. We can make it work whatever way people think should become a best practice. Though usually things

Re: Partial Downloads with Pyramid

2011-12-17 Thread Kyle Welsh
On Sat, Dec 17, 2011 at 2:01 AM, Chris Rossi ch...@archimedeanco.comwrote: On Fri, Dec 16, 2011 at 5:27 PM, Kyle Welsh kywe...@gmail.com wrote: On Fri, Dec 16, 2011 at 11:18 PM, Chris Rossi ch...@archimedeanco.com wrote: On Fri, Dec 16, 2011 at 2:24 PM, Kyle Welsh kywe...@gmail.com

Is there any case where chameleon is more preferred?

2011-12-17 Thread Joshua Partogi
Hi there, I am left undecided whether to use mako or chameleon. From what I have observed, it seems that chameleon is the default template language in pyramid (CMIIW). Is there any case where chameleon is more preferred when using pyramid? I actually like mako but I am afraid there are some mako

Re: how to use several Bases with config.include and a shared DBSession

2011-12-17 Thread Viktor Nagy
As far as I could understand the SQLAlchemy docs (especially [1], some kind of a centralised session handling is a must have, as the current habit of defining a DBSession = scoped_session actually create separate session factories, and only the session provided by each of these are the same. That

Re: Is there any case where chameleon is more preferred?

2011-12-17 Thread Mark Erbaugh
On Dec 17, 2011, at 8:28 AM, Joshua Partogi wrote: Hi there, I am left undecided whether to use mako or chameleon. From what I have observed, it seems that chameleon is the default template language in pyramid (CMIIW). Is there any case where chameleon is more preferred when using

Re: Is there any case where chameleon is more preferred?

2011-12-17 Thread Mike Orr
On Sat, Dec 17, 2011 at 5:28 AM, Joshua Partogi joshua.part...@gmail.com wrote: Hi there, I am left undecided whether to use mako or chameleon. From what I have observed, it seems that chameleon is the default template language in pyramid (CMIIW). Is there any case where chameleon is more

Re: Model validation

2011-12-17 Thread rihad
Hi, folks. I'm trying to follow this guide: http://docs.formalchemy.org/pyramid_formalchemy/ to install pyramid_formalchemy for pyramid-1.3a2-py2.7. I've easy_installed pyramid_formalchemy with its dependencies, added 'pyramid_formalchemy', 'fa.jquery', to requires in setup.py and rerun

Re: Model validation

2011-12-17 Thread Chris McDonough
On Sat, 2011-12-17 at 12:19 -0800, rihad wrote: Hi, folks. I'm trying to follow this guide: http://docs.formalchemy.org/pyramid_formalchemy/ to install pyramid_formalchemy for pyramid-1.3a2-py2.7. I've easy_installed pyramid_formalchemy with its dependencies, added 'pyramid_formalchemy',

Re: Model validation

2011-12-17 Thread rihad
Thanks, but... after doing what you suggested all looks great at first: $ paster create --list-templates Available templates: basic_package: A basic setuptools-enabled package paste_deploy: A web application deployed through paste.deploy pylons_fa: Pylons application template with

Re: Model validation

2011-12-17 Thread rihad
Is going back to 1.2 the only way to try pyramid_formalchemy out? -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to

Re: Model validation

2011-12-17 Thread Gael Pasgrimaud
On Sat, Dec 17, 2011 at 9:41 PM, rihad ri...@mail.ru wrote: Is going back to 1.2 the only way to try pyramid_formalchemy out? No, you don't really need a template. You can add pyramid_formalchemy to a project with only a few extra lines to your __init__.py:

Re: Model validation

2011-12-17 Thread Chris McDonough
On Sat, 2011-12-17 at 12:41 -0800, rihad wrote: Is going back to 1.2 the only way to try pyramid_formalchemy out? That'd be the easiest way, at least until pyramid_formalchemy is updated to work with Pyramid 1.3. - C -- You received this message because you are subscribed to the Google

Re: Model validation

2011-12-17 Thread Chris McDonough
On Sat, 2011-12-17 at 16:05 -0500, Chris McDonough wrote: On Sat, 2011-12-17 at 12:41 -0800, rihad wrote: Is going back to 1.2 the only way to try pyramid_formalchemy out? That'd be the easiest way, at least until pyramid_formalchemy is updated to work with Pyramid 1.3. For the record, how

Re: How to bundle and minify assets (JavaScript, CSS)

2011-12-17 Thread Michael Elsdörfer
The current released version is broken on Windows - you need to use the latest git master. On Dec 17, 7:11 am, roberkules roberku...@gmail.com wrote: Hi, I'm trying to figure out a way how to bundle/combine JavaScript files. I found some packages for Django, but none for Pyramid (1.2)

Re: Is there any case where chameleon is more preferred?

2011-12-17 Thread John Rusnak
If you have ever tried full-up programming in XML or seen XML that tries to act like a full programming language this is what the Chameleon experience was like for me. And for me, this is not a pleasant one. XML/HTML was not designed for programming logic, etc. Mako allows a good and balanced

Re: Model validation

2011-12-17 Thread Gael Pasgrimaud
On Sat, Dec 17, 2011 at 10:09 PM, Chris McDonough chr...@plope.com wrote: On Sat, 2011-12-17 at 16:05 -0500, Chris McDonough wrote: On Sat, 2011-12-17 at 12:41 -0800, rihad wrote: Is going back to 1.2 the only way to try pyramid_formalchemy out? That'd be the easiest way, at least until

Re: Is there any case where chameleon is more preferred?

2011-12-17 Thread jerry
I tried to write full-up programs in XML/XSLT at work and fully agree with you that XML is by design not suitable for such task. However, templates are not, and should not be, full-up programs. The awkward XML programing can actually remind the author to limit the logic in the template. Besides,

Re: Is there any case where chameleon is more preferred?

2011-12-17 Thread Chris McDonough
On Sat, 2011-12-17 at 16:26 -0800, jerry wrote: I tried to write full-up programs in XML/XSLT at work and fully agree with you that XML is by design not suitable for such task. However, templates are not, and should not be, full-up programs. The awkward XML programing can actually remind the

Re: Model validation

2011-12-17 Thread Jonathan Vanasco
I've built dozens of sites over the past 14 or so years , with Ad Agencies, Large Brands, Tech Startups, Major Media companies. Doing this, I've learned that Frameworks are really really great for the run-of-the-mill project that has a quick deadline, doesn't do anything new exciting, and has a

Re: how to use several Bases with config.include and a shared DBSession

2011-12-17 Thread Michael Bayer
On Dec 17, 2011, at 4:40 AM, Chris Withers wrote: On 16/12/2011 23:48, Michael Bayer wrote: I was just looking to express (and top post, its just easier) that right now the sharing the base patterns arent' nailed down, but that it can be whatever. We can make it work whatever way people

Re: Is there any case where chameleon is more preferred?

2011-12-17 Thread Michael Bayer
On Dec 17, 2011, at 8:28 AM, Joshua Partogi wrote: Hi there, I am left undecided whether to use mako or chameleon. From what I have observed, it seems that chameleon is the default template language in pyramid (CMIIW). Is there any case where chameleon is more preferred when using

Re: Is there any case where chameleon is more preferred?

2011-12-17 Thread Chris McDonough
On Sat, 2011-12-17 at 23:45 -0500, Michael Bayer wrote: On Dec 17, 2011, at 9:10 PM, Chris McDonough wrote: For what it's worth, I've been using ZPT (the syntax that Chameleon implements) for about 9 years. It's no worse and no better than anything else; the very act of templating itself