#NEWLINE# def _render_column( column , autogen_context ) : #NEWLINE# #INDENT# rendered = _user_defined_render ( 'column' , column , autogen_context ) #NEWLINE# if ( rendered is not False ) : #NEWLINE# #INDENT# return rendered #NEWLINE# #UNINDENT# opts = [ ] #NEWLINE# if column . server_default : #NEWLINE# #INDENT# rendered = _render_server_default ( val . server_default , autogen_context ) #NEWLINE# if rendered : #NEWLINE# #INDENT# opts . append ( ( 'server_default' , rendered ) ) #NEWLINE# #UNINDENT# #UNINDENT# if ( not column . autoincrement ) : #NEWLINE# #INDENT# opts . append ( ( 'autoincrement' , column . autoincrement ) ) #NEWLINE# #UNINDENT# if ( column . nullable is not None ) : #NEWLINE# #INDENT# opts . append ( ( 'nullable' , column . nullable ) ) #NEWLINE# #UNINDENT# return ( '%(prefix)sColumn(%(name)r, %(type)s, %(kw)s)' % { #NEWLINE# #INDENT# 'prefix' : _sqlalchemy_autogenerate_prefix ( autogen_context ) , #NEWLINE# 'name' : column . name , #NEWLINE# 'type' : _repr_type ( column . type , autogen_context ) , #NEWLINE# 'kw' : ', ' . join ( [ ( '%s=%s' % ( kwname , val ) ) for ( kwname , val ) in opts ] ) , #NEWLINE# #UNINDENT# } )