nnrpd_access.py
Edmund Wong
e_wong at pw-wspx.org
Mon Sep 26 09:32:41 UTC 2016
Julien ÉLIE wrote:
> Hi Edmund,
>
>> dtc = {'read': 'test.*', {'post', 'test.*'})
>> return dtc
>>
>>
>> it just keeps on complaining that the return value isn't a dictionary.
>> Am I doing this right?
>
> Wouldn't it look better this way:
> dtc = {'read': 'test.*', 'post': 'test.*'}
>
Yeah.. kinda screwed up the copy and paste from the terminal.
But even with that change, I'm still getting :
Sep 26 16:49:50 trex lt-nnrpd[26136]: python access method returned
wrong result -- expected a dictionary
I finally found out my faux-pas.
syslog('notice' 'bleh')
Forgot the comma. ;/
I'm surprised |python -c "import nnrpd, nnrpd_access"| didn't
complain.
Ed
More information about the inn-workers
mailing list