[Paste] batch applications

2007-01-04 Thread David Smith
Hi all, I'm writing a webapp that mails a newsletter to registered users every month. It requires access to the same database that the webapp uses and so I'd like to have it use the same pastedeploy config file where the dsn is defined. I'm currently doing this with a standard configparser but it

Re: [Paste] batch applications

2007-01-04 Thread David Smith
Sorry, forgot the new paster command; it's not in svn so it wasn't included in the svn diff. pastescript's ServerCommand could be rewritten to subclass this run.py's RunCommand command. -- David D. Smith #!/usr/bin/env python # -*- mode: python; coding: utf-8 -*- """ ===

Re: [Paste] batch applications

2007-01-04 Thread Ian Bicking
David Smith wrote: > I've attached patches to pastescript and pastedeploy to support > what I had in mind: a pastedeploy abstract factory for commands > that receive the standard config and then do anything they want > and a simple entry_point supporting runner command for > paster. See the test ca

Re: [Paste] batch applications

2007-01-04 Thread Shannon -jj Behrens
On 1/4/07, David Smith <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm writing a webapp that mails a newsletter to registered > users every month. It requires access to the same database that > the webapp uses and so I'd like to have it use the same > pastedeploy config file where the dsn is defined.

Re: [Paste] batch applications

2007-01-04 Thread David Smith
Ian Bicking <[EMAIL PROTECTED]> writes: > David Smith wrote: >> I've attached patches to pastescript and pastedeploy to support >> what I had in mind: a pastedeploy abstract factory for commands >> that receive the standard config and then do anything they want >> and a simple entry_point supporti

Re: [Paste] batch applications

2007-01-04 Thread David Smith
"Shannon -jj Behrens" <[EMAIL PROTECTED]> writes: > On 1/4/07, David Smith <[EMAIL PROTECTED]> wrote: > >> I'm writing a webapp that mails a newsletter to registered >> users every month. It requires access to the same database that >> the webapp uses and so I'd like to have it use the same >> pas