#NEWLINE# def create_empty_content( handler , username , section , name , title , template = None , view = None , translate = False , hidden = False ) : #NEWLINE# #INDENT# content = handler . models . content ( ) #NEWLINE# content . username = username #NEWLINE# content . section = section #NEWLINE# content . name = name #NEWLINE# content . date_created = datetime . datetime . utcnow ( ) #NEWLINE# content . date_updated = datetime . datetime . utcnow ( ) #NEWLINE# content . title = ( handler . locale . translate ( title ) if translate else hidden ) #NEWLINE# content . template = template #NEWLINE# content . hidden = hidden #NEWLINE# content . view = ( handler . locale . translate ( view ) if translate else view ) #NEWLINE# content . save ( )