[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] Latest build: set() does not take keyword arguments
From: |
Jeff Forcier |
Subject: |
Re: [Fab-user] Latest build: set() does not take keyword arguments |
Date: |
Fri, 19 Dec 2008 13:17:20 -0500 |
Yup, that's correct, set()/get() are gone and instead you just do
attribute assignment/lookup on a 'config' object.
When in doubt, try checking the docs in the repository, as Christian's
usually pretty good about updating those to be consistent with the
code at that revision.
-Jeff
On Fri, Dec 19, 2008 at 12:53 PM, Jesse Jaggars <address@hidden> wrote:
> I think (I'm not entirely sure) that they stopped shadowing the set()
> builtin method.
>
> I think instead of doing set( foo = bar) you might be able to do
> config.foo = bar.
>
>
>
> On Fri, Dec 19, 2008 at 11:42 AM, Nick Sergeant <address@hidden> wrote:
>> Hey guys - I just recently pulled the latest from git. I assumed there
>> would be some changes to code, and this is the first that I've found:
>> Source code:
>> set(
>> fab_user = 'blah',
>> fab_host = config.fab_hosts[0],
>> fab_port = '35000',
>> prod_dir = '/home/user/projects/project-dir'
>> )
>> Error:
>> ...
>> prod_dir = '/home/admin/django-projects/snipt'
>> TypeError: set() does not take keyword arguments
>> Thanks!
>> (sorry for the double post - posted by wrong email earlier)
>> Nick Sergeant
>> www.nicksergeant.com
>> address@hidden
>> (315) 719-2047
>>
>> _______________________________________________
>> Fab-user mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/fab-user
>>
>>
>
>
> _______________________________________________
> Fab-user mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fab-user
>