#NEWLINE# def get_template_data( self ) : #NEWLINE# #INDENT# 'Generates template variables by using extracted properties.\n        ' #NEWLINE# render_h = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# render_m = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( model_name , properties ) in self . properties . items ( ) : #NEWLINE# #INDENT# joined_properties = '\n' . join ( map ( objc_tpl . property_tpl , properties ) ) #NEWLINE# joined_headers = '\n' . join ( filter ( ( lambda x : x ) , map ( objc_tpl . header_tpl , properties ) ) ) #NEWLINE# joined_aliases = '\n            ' . join ( filter ( ( lambda x : x ) , map ( objc_tpl . alias_tpl , properties ) ) ) #NEWLINE# joined_transformers = '\n' . join ( filter ( ( lambda x : x ) , map ( objc_tpl . transformer_tpl , properties ) ) ) #NEWLINE# render_h [ model_name ] = { #NEWLINE# #INDENT# 'file_name' : model_name , #NEWLINE# 'properties' : joined_properties , #NEWLINE# 'created_at' : self . meta_data [ 'created_at' ] , #NEWLINE# 'author' : self . meta_data [ 'author' ] , #NEWLINE# 'year' : self . meta_data [ 'year' ] , #NEWLINE# 'headers' : joined_headers , #NEWLINE# #UNINDENT# } #NEWLINE# render_m [ model_name ] = { #NEWLINE# #INDENT# 'file_name' : model_name , #NEWLINE# 'property_alias' : joined_aliases , #NEWLINE# 'created_at' : self . meta_data [ 'created_at' ] , #NEWLINE# 'author' : self . meta_data [ 'author' ] , #NEWLINE# 'year' : self . meta_data [ 'year' ] , #NEWLINE# 'transformers' : joined_transformers , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# return ( joined_properties , render_m )