2008/11/18 Nicolas Steinmetz <[EMAIL PROTECTED]>

> It looks there are at least one implementation of functools for python 2.4
> :
>
> http://houseofhaus.org/docs/0.1.0/components/abstract.html
>
> I added it instead of the import statement and for now (fab, fab list)
> works like a charm. I will go on this way and keep you informed about this.
>

Do know not if it's a bug or a side effect of above code :

With following fabfile :

# Preprod envts
config.rdbms_ppr = ['dgrlx008']
config.httpd_ppr = ['dgrlx008']

# Prod envts
config.rdbms_prd = ['dgrlx009']
config.httpd_prd = ['dgrlx009']

def build():
    local('echo Building project')

@roles('rdbms')
def prepare_db():
    run("echo Preparing database for deployment")

@roles('httpd')
def prepare_web():
    run("echo Preparing web servers for deployment")

@depends(prepare_db, prepare_web)
@roles('httpd')
def deploy_test():
    run("echo Doing final deployment things to $(fab_host)")

def production():
    """
    Define production server
    """
    # set(fab_hosts=['dgrlx009'])
    config.rdbms, config.httpd = config.httpd_prd, config.rdbms_prd

def preprod():
    """
    Define pre-production server
    """
    # set(fab_hosts=['dgrlx008'])
    config.rdbms, config.httpd = config.httpd_ppr, config.rdbms_ppr

I have the following error statement :

[EMAIL PROTECTED] fabric]# fab preprod deploy_test
Fabric v. 0.0.9b.
Running preprod...
Running deploy_test...
Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/fabric.py", line 1356, in main
  File "build/bdist.linux-i686/egg/fabric.py", line 1254, in
_execute_commands
  File "build/bdist.linux-i686/egg/fabric.py", line 1278, in
_execute_command
  File "build/bdist.linux-i686/egg/fabric.py", line 266, in <lambda>
  File "build/bdist.linux-i686/egg/fabric.py", line 685, in invoke
TypeError: _execute_command() takes at least 3 non-keyword arguments (2
given)

It looks related to last Jeff's commits, unless it requires a new syntax for
commands.

Regards,
Nicolas
_______________________________________________
Fab-user mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to