#NEWLINE# def validate( self , data ) : #NEWLINE# #INDENT# user = getattr ( self . context . get ( 'request' ) , 'user' ) #NEWLINE# if ( user and ( not user . is_anonymous ( ) ) and ( data . get ( 'creator' ) is None ) ) : #NEWLINE# #INDENT# data [ 'creator' ] = user #NEWLINE# #UNINDENT# return data