Il giorno 03/lug/2013 01:24, "Aplemaser" <deevot...@gmail.com> ha scritto:
> def display_method(self,stringa,metodo): > wServer = WSDL.Proxy(stringa) # stringa sarebbe l'equivalente ad url > hits = wServer.metodo(PARAMESTRI) # Ecco qui non so come passare metodo, che poi sarebbe il "valore" di prima Non è che vuoi "passare" metodo, tu vuoi chiamare il metodo il cui nome è contenuto nella variabile metodo. Presupponendo di aver capito bene, devi fare così: getattr(wServer, metodo)(par1, par2...) Ciao. Marco.
_______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python