Re: Daemonizing and auto-restart

2007-06-18 Thread Contact 42
Mike Orr wrote: I'm reviving this thread. Ken Garland wrote in another thread: Would like to hear an update on supervisord if you are able to get it up and running. The problem is the app won't start and there's no entry in the error logs as to why. I'm wondering I can add

Re: running scripts using pylons models

2007-06-29 Thread Contact 42
Maybe I'm just not getting it, but this looks really complicated for what it's trying to achieve (not the fault of the OP but more so because of the paste config stuff). serioiusly, why not just have appconfig.py dburi = 'postgres://user:[EMAIL PROTECTED]/db' database.py import appconfig.py

Re: running scripts using pylons models

2007-06-30 Thread Contact 42
because I want reuse my models/database code. Huy Regards, On 30 Cze, 04:52, Contact 42 [EMAIL PROTECTED] wrote: Maybe I'm just not getting it, but this looks really complicated for what it's trying to achieve (not the fault of the OP but more so because of the paste config stuff). serioiusly

Re: turbogears style

2007-09-04 Thread Contact 42
2) TG is spinning off several components which were bundled in TG 1. These will be Pylons-compatible and/or WSGI-compatible, making them accessible both to Pylons applications as well as TG applications. What exactly is TG once this happens, the individual components ? or the combination

Re: launching bg subproc from Pylons

2007-10-02 Thread Contact 42
you can try os.system(mycmd ) huy stupid question: I'm trying to launch a background process from a Pylons controller, using the Python subprocess module in response to a hit from a browser. Funny thing is that Pylons seems to hold the browser connection open until the subprocess has

Re: Form re-rendering itself

2007-10-03 Thread Contact 42
not sure how the two dots got in there, but it should only be one dot. c.userprofile.firstname huy Hi Huy, is the formatting right; I did´nt know about that, seems strange, c follwed by two dots? Is this documented somewhere? I´ll like to read it up On Oct 4, 5:41 am, Contact 42

Re: launching bg subproc from Pylons

2007-10-16 Thread Contact 42
huydo wrote: On Oct 5, 12:57 am, ram [EMAIL PROTECTED] wrote: that's interesting. Just out of interest, what program were you spawing ? and what does itdo? how long does it run for ? It's a long running batch job, database updates, GL file generation, month-end stuff.. A python

Re: Layouts in pylons

2008-02-21 Thread Contact 42
Chad wrote: Just curious of how other pylons developers are doing site layout in their apps? Are you guys mostly using the template and includes? I'm currently using genshi and xi:include. This method works.. but it really seems like a lot of wasted code. In the past I've used several

Re: Layouts in pylons

2008-02-21 Thread Contact 42
or layouts by controllers. Or, we should be able to create a routes like feature that automatically decorates your template depending on the url.. Chad On Feb 21, 5:54 am, Contact 42 [EMAIL PROTECTED] wrote: Chad wrote: Just curious of how other pylons developers are doing site layout

Re: Layouts in pylons

2008-02-21 Thread Contact 42
a routes like feature that automatically decorates your template depending on the url.. Chad On Feb 21, 5:54 am, Contact 42 [EMAIL PROTECTED] wrote: Chad wrote: Just curious of how other pylons developers are doing site layout in their apps? Are you guys mostly using the template

Re: is there a good way to stash a global var, that doesn't use g/app_globals

2008-04-29 Thread Contact 42
Wichert Akkerman wrote: Previously Contact 42 wrote: what's wrong with a normal python module. Thread safety. Wichert true, but for config stuff that never changes i.e constants, I don't see a problem. Huy --~--~-~--~~~---~--~~ You received

Re: clearing Elixir/SA sessions

2008-05-09 Thread Contact 42
Chris Curvey wrote: Hey folks, it's me again! (I will wait for the groans to subsidegood.) I've got two issues, both related to (I think) connection pooling. I'm using Elixir with Pylons. The first issue is that I'm still seeing old data show up on my web pages. I have some

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