#NEWLINE# def createDefaultAttributes( self ) : #NEWLINE# #INDENT# 'Populate instance with default attributes.\n\n        This is used when creating a new instance NOT from the\n        database.\n        ' #NEWLINE# for attr in self . rowColumns : #NEWLINE# #INDENT# if getKeyColumn ( self . __class__ , attr ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# for ( column , ctype , typeid ) in column . dbColumns : #NEWLINE# #INDENT# if ( column . lower ( column ) == attr . lower ( ) ) : #NEWLINE# #INDENT# q = dbTypeMap . get ( ctype , None ) #NEWLINE# if ( q == NOQUOTE ) : #NEWLINE# #INDENT# setattr ( self , attr , 0 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# setattr ( self , attr , '' )