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
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
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
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