#NEWLINE# def render( self , name , value , attrs = None , context = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# assert hasattr ( self , 'node' ) , 'You must set the node on a WidgyWidget prior to rendering it.' #NEWLINE# self . node . maybe_prefetch_tree ( ) #NEWLINE# defaults = { #NEWLINE# #INDENT# 'html_name' : name , #NEWLINE# 'value' : value , #NEWLINE# 'html_id' : attrs [ 'id' ] , #NEWLINE# 'node_dict' : self . node . to_json ( self . site ) , #NEWLINE# 'node' : self . node , #NEWLINE# 'api_url' : reverse ( self . site . node_view ) , #NEWLINE# 'site' : self . site , #NEWLINE# 'owner' : self . owner , #NEWLINE# #UNINDENT# } #NEWLINE# if settings . DEBUG : #NEWLINE# #INDENT# defaults [ 'cachebust' ] = time . time ( ) #NEWLINE# #UNINDENT# defaults . update ( context ) #NEWLINE# return render_to_string ( self . template_name , defaults )