#NEWLINE# def __init__( self , user , folder_id , * args , **kwargs ) : #NEWLINE# #INDENT# super ( FolderForm , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# self . fields [ 'name' ] . label = _ ( 'Name' ) #NEWLINE# self . fields [ 'parent' ] . label = _ ( 'Parent' ) #NEWLINE# self . fields [ 'parent' ] . queryset = Object . filter_permitted ( user , Folder . objects , mode = 'x' ) #NEWLINE# if folder_id : #NEWLINE# #INDENT# self . fields [ 'parent' ] . initial = self