paster make-config issue

2008-06-11 Thread Jean Parpaillon
Hi all, When using paster make-config, generated file is automatically added to svn. Is there a way to disable it ? Why is it the default behaviour ? (Generated files are usually not versioned !) Regards, -- Jean Parpaillon Kerlabs - Software Engineer Bâtiment Germanium 80, avenue des Buttes

Re: Mako migration strategies

2008-06-11 Thread Jonathan Vanasco
interesting decision on the change. In a Perl framework I once built, we approached this a little differently 1. a var was set on app startup to set the render function's default behavior 2. the render() function took a keyword argument to dispatch to another function that worked really well

Re: Bulk inserts

2008-06-11 Thread rcs_comp
One other option might be to have each request dump its data to a random file with a .tmp extension to a queue directory. When the process is done, it can rename the file (which should be atomic) to a .csv file. Then the controller exits. You then have a second worker process checking the

Re: Bulk inserts

2008-06-11 Thread Shannon -jj Behrens
Beware of multiple threads and/or processes writing to the file at the same time. It may make sense to use a mutex. I agree with the earlier recommendations to use mysql load data in file. It really is a lot faster. You can completely remove Python from the picture when importing the file.

Re: Mako migration strategies

2008-06-11 Thread Mike Orr
On Wed, Jun 11, 2008 at 6:36 PM, Jonathan Vanasco [EMAIL PROTECTED] wrote: interesting decision on the change. In a Perl framework I once built, we approached this a little differently 1. a var was set on app startup to set the render function's default behavior 2. the render() function

Re: Difference between controllers and views?

2008-06-11 Thread Shannon -jj Behrens
On Wed, Jun 11, 2008 at 3:14 PM, Ben Bangert [EMAIL PROTECTED] wrote: On Jun 11, 2008, at 1:10 PM, Karlo Lozovina wrote: What's the practical difference between controller based approach and views based one? Eg. Django views, and controllers in Pylons? It doesn't seem that much different, so

Re: paster make-config issue

2008-06-11 Thread Shannon -jj Behrens
On Wed, Jun 11, 2008 at 9:51 AM, Ian Bicking [EMAIL PROTECTED] wrote: Jean Parpaillon wrote: Hi all, When using paster make-config, generated file is automatically added to svn. Is there a way to disable it ? Why is it the default behaviour ? (Generated files are usually not versioned !)

Re: Mako migration strategies

2008-06-11 Thread Contact 42
Ross Vandegrift wrote: On Tue, Jun 10, 2008 at 12:08:38PM -0700, Mike Orr wrote: On Tue, Jun 10, 2008 at 11:29 AM, Ross Vandegrift [EMAIL PROTECTED] wrote: But I don't support I could use both templating engines at once and do something like render_mako(sometemplate) and

Re: Bulk inserts

2008-06-11 Thread rcs_comp
if you use my method above I would do something like this: rename file to .err and send an email to an admin with as much detail as possible while possibly saving said error information in a separate file in case the email doesn't come through. The main concern here would be whether or not the

Re: per request template path modification

2008-06-11 Thread kai
render_mako(lang+'template') isn't catching the nested inherit tags which I'd like to do automatically once the language is decided in __before__. We were able to flex each language site layout with a site specific stylesheet to cover alot of the cases but the translators and web designers

Re: Difference between controllers and views?

2008-06-11 Thread Ben Bangert
On Jun 11, 2008, at 7:12 PM, Shannon -jj Behrens wrote: MVC is a cargo cult ;) http://jjinux.blogspot.com/2005/04/mvc-cargo-cult.html Regardless of the original meaning in the context of Smalltalk, the terminology does have a fairly easy to understand and very common interpretation (most

Re: Mako migration strategies

2008-06-11 Thread Jose Galvez
Nice, Thanks for the heads up. I'm going to have to look through a couple of my apps, I think some of them are using Prototype. I guess its time to really learn how to use jQuery. One thing I really liked about the JavaScript integration with webhelpers was that it made some complicated