librelist archives

« back to archive

Make relay and receiver globals

Make relay and receiver globals

From:
Jökull Sólberg Auðunsson
Date:
2010-07-30 @ 17:07
Instead of placing `relay` and `receiver` on the settings object make them
globals accessible by a proxy like so:
http://github.com/mitsuhiko/flask/blob/master/flask/globals.py

Getting rid of the boot.py altogether file would be cool too. Lamson should
perhaps take care of that stuff internally in a `boot` command.

Solberg

Re: [lamson] Make relay and receiver globals

From:
Zed A. Shaw
Date:
2010-07-30 @ 18:40
On Fri, Jul 30, 2010 at 05:07:57PM +0000, Jökull Sólberg Auðunsson wrote:
> Instead of placing `relay` and `receiver` on the settings object make them
> globals accessible by a proxy like so:
> http://github.com/mitsuhiko/flask/blob/master/flask/globals.py
> 
> Getting rid of the boot.py altogether file would be cool too. Lamson should
> perhaps take care of that stuff internally in a `boot` command.

Interesting, I'll take a look.  If you're interested in working on the
idea let me know and I'll give you access to the code.

-- 
Zed A. Shaw
http://zedshaw.com/