Exemplo n.º 1
0
def handFactory(ctx):
    co = _CARRYOVER.get(ctx.tag.args.get('_nevow_carryover_', [None])[0], None)
    return inevow.IHand(co, None)
Exemplo n.º 2
0
 def render_result(self, ctx, data):
     result = inevow.IHand(ctx, default=None)
     if result is not None:
         return result
     return ''
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 def render_hand(self, ctx, data):
     hand = inevow.IHand(ctx, None)
     if hand is not None:
         return ctx.tag[hand]
     return ''