22 lines
501 B
Python
Raw Normal View History

2012-03-18 14:21:58 +00:00
"""
"""
from .node import Node
class Deferred(Node):
def __init__(self, mixin, args):
"""
"""
self.mixin = mixin
self.args = args
def parse(self, scope):
"""
"""
if hasattr(self.mixin, 'call'):
return self.mixin.call(scope, self.args)
2012-03-24 18:33:19 +00:00
mixins = scope.mixins(self.mixin.raw())
if not mixins: return mixins
for m in mixins:
res = m.call(scope, self.args)
if res: return res