Browse Source

Fixes for the chaining issue

main
Lakshmi Vyasarajan 13 years ago
parent
commit
33e9f7c9c4
1 changed files with 5 additions and 6 deletions
  1. +5
    -6
      hyde/plugin.py

+ 5
- 6
hyde/plugin.py View File

@@ -41,12 +41,11 @@ class PluginProxy(object):
# plugin.__class__.__name__) # plugin.__class__.__name__)
function = getattr(plugin, method_name) function = getattr(plugin, method_name)
res = function(*args) res = function(*args)
last = None
if res:
targs = list(args)
if len(targs):
last = targs.pop()
targs.append(res if res else last)
targs = list(args)
if len(targs):
last = targs.pop()
res = res if res else last
targs.append(res)
args = tuple(targs) args = tuple(targs)
return res return res




Loading…
Cancel
Save