comparison MoinMoin/wikirpc.py @ 51:54d5932d5a03

merge moin--main--1.3--patch-930: fix error handling in plugins, fix broken chart action Patches applied: * arch@arch.thinkmo.de--2003-archives/moin--main--1.3--patch-930 fix error handling in plugins, fix broken chart action * nirs@freeshell.org--2005/moin--fix--1.3--patch-50 merge from main * nirs@freeshell.org--2005/moin--fix--1.3--patch-51 fix error handling in plugins * nirs@freeshell.org--2005/moin--fix--1.3--patch-52 merge from main * nirs@freeshell.org--2005/moin--fix--1.3--patch-53 update changes with chart action fix imported from: moin--main--1.5--patch-52
author Nir Soffer <nirs@freeshell.org>
date Thu, 29 Sep 2005 00:36:27 +0000
parents 77665d8e2254
children 699811601bed
comparison
equal deleted inserted replaced
50:69dfbae549ac 51:54d5932d5a03
406 sys.stderr.write('%s(%s)\n\n' % (method, repr(params))) 406 sys.stderr.write('%s(%s)\n\n' % (method, repr(params)))
407 407
408 try: 408 try:
409 fn = getattr(self, 'xmlrpc_' + method) 409 fn = getattr(self, 'xmlrpc_' + method)
410 except AttributeError: 410 except AttributeError:
411 fn = wikiutil.importPlugin(self.request.cfg, 'xmlrpc', method, 411 try:
412 'execute') 412 fn = wikiutil.importPlugin(self.request.cfg, 'xmlrpc',
413 if fn is None: 413 method, 'execute')
414 except ImportError:
414 response = xmlrpclib.Fault(1, "No such method: %s." % 415 response = xmlrpclib.Fault(1, "No such method: %s." %
415 method) 416 method)
416 else: 417 else:
417 response = fn(self, *params) 418 response = fn(self, *params)
418 else: 419 else: