Re: Driver selection

2006-12-11 Thread Gabriel Genellina
At Saturday 9/12/2006 13:15, Stuart D. Gathman wrote: app.py: import spf spf.set_driver('dnspython') ... Can a function replace itself? For instance, in spf.py, could DNSLookup do this to provide a default: def set_driver(d): if d == 'pydns': from pydns_driver import DNSLookup elif d

Re: Driver selection

2006-12-09 Thread Stuart D. Gathman
On Fri, 08 Dec 2006 21:35:41 -0800, Gabriel Genellina wrote: > On 9 dic, 00:53, "Stuart D. Gathman" <[EMAIL PROTECTED]> wrote: >> Or you can modify the source to "from drivermodule import DNSLookup". >> >> What is the friendliest way to make this configurable? Currently, users >> are modifying t

Re: Driver selection

2006-12-08 Thread Gabriel Genellina
On 9 dic, 00:53, "Stuart D. Gathman" <[EMAIL PROTECTED]> wrote: > The pyspf package [http://cheeseshop.python.org/pypi/pyspf/] can use > either pydns, or dnspython. The pyspf module has a simple driver > function, DNSLookup(), that defaults to the pydns version. It can be > assigned to a dnspytho

Driver selection

2006-12-08 Thread Stuart D. Gathman
The pyspf package [http://cheeseshop.python.org/pypi/pyspf/] can use either pydns, or dnspython. The pyspf module has a simple driver function, DNSLookup(), that defaults to the pydns version. It can be assigned to a dnspython version, or to a test driver for in memory DNS. Or you can modify the