Bonjour, voici mon problème :
- J'ai un script python "sayHello" sous Plone
- Je voudrais "invoquer" une méthode en connaissant juste son nom... stocké dans une string.
import xmlrpclib
URL = "http://....."
methodeAInvox = "sayHello"
server = xmlrpclib.ServerProxy(URL)
try:
print server.sayHello() #Ca sa marche
# print server.methodeAInvox.value() # Ca ca marche pas
except Exception, e:
print "Erreur 3 - Pb d'invocation.", str(e)
Voilà, j'ai écrit une abération, mais c pour expliquer mon problème... Etant début en Python, je ne sais pas comment faire.
Quelqu'un aurait une solution ?
Partager