def handle_host(self,*args, **options):
        with settings(patch=True):
            deploy_wsgi()
            deploy_webconf()
        
        activate_sites = [''.join([d.name.replace('.','_'),'-',state.env.project_version,'.conf']) for d in domain_sites()]
        site_paths = ['/etc/apache2','/etc/nginx']
        
        #activate new sites
        for path in site_paths:
            for site in activate_sites:
                if not exists('/'.join([path,'sites-enabled',site])):
                    sudo("chmod 644 %s" % '/'.join([path,'sites-available',site]))
                    sudo((path,site,path,site)% "ln -s %s/sites-available/%s %s/sites-enabled/%s")
                    if state.env.verbosity:
                        print " * enabled", "%s/sites-enabled/%s"% (path,site)
        reload_webservers()
dataset/ETHPy150Open bretth/woven/woven/management/commands/startsites.py/Command.handle_host/swapped operands of `%`