#NEWLINE# def __init__( self , user , skip = None , * args , **kwargs ) : #NEWLINE# #INDENT# if ( skip is None ) : #NEWLINE# #INDENT# skip = [ ] #NEWLINE# #UNINDENT# super ( FilterForm , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# self . fields [ 'title' ] . label = _ ( 'Title' ) #NEWLINE# self . fields [ 'folder' ] . label = _ ( 'Folder' ) #NEWLINE# if ( 'title' in skip ) : #NEWLINE# #INDENT# del self . fields [ 'title' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . fields [ 'title' ] . required = False #NEWLINE# #UNINDENT# if ( 'folder' in args ) : #NEWLINE# #INDENT# del self . fields [ 'folder' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . fields [ 'folder' ] . queryset = Object . filter_permitted ( user , Folder . objects , mode = 'x' ) #NEWLINE# self . fields [ 'folder' ] . null = True