#NEWLINE# def generate_tuple_class_from_file( name , catpath ) : #NEWLINE# #INDENT# cat = FromFileCatalog . load_from_file ( catpath ) #NEWLINE# if ( name is not None ) : #NEWLINE# #INDENT# rel_key = 'public:adhoc:{0}' . format ( name ) #NEWLINE# return ( cat , rel_key , generate_tuple_class ( rel_key , cat ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( cat , [ ( n , generate_tuple_class ( n , cat ) ) for n in cat . get_keys ( ) ] )