コード例 #1
0
ファイル: rend.py プロジェクト: msdemlei/nevow
def handFactory(ctx):
    co = _CARRYOVER.get(ctx.tag.args.get('_nevow_carryover_', [None])[0], None)
    return inevow.IHand(co, None)
コード例 #2
0
ファイル: prefs.py プロジェクト: xregist/shtoom
 def render_result(self, ctx, data):
     result = inevow.IHand(ctx, default=None)
     if result is not None:
         return result
     return ''
コード例 #3
0
ファイル: rend.py プロジェクト: msdemlei/nevow
 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)
コード例 #4
0
ファイル: formpost2.py プロジェクト: perkinslr/nevow-py3
 def render_hand(self, ctx, data):
     hand = inevow.IHand(ctx, None)
     if hand is not None:
         return ctx.tag[hand]
     return ''