def handFactory(ctx): co = _CARRYOVER.get(ctx.tag.args.get('_nevow_carryover_', [None])[0], None) return inevow.IHand(co, None)
def render_result(self, ctx, data): result = inevow.IHand(ctx, default=None) if result is not None: return result return ''
def child_freeform_hand(self, ctx): carryoverHand = inevow.IHand(ctx, None) if carryoverHand is not None: inevow.ISession(ctx).setComponent(inevow.IHand, carryoverHand) return carryoverHand return inevow.IHand(inevow.ISession(ctx), None)
def render_hand(self, ctx, data): hand = inevow.IHand(ctx, None) if hand is not None: return ctx.tag[hand] return ''