#NEWLINE# def get_column_options( self , **kw ) : #NEWLINE# #INDENT# kw . update ( dataIndex = self . name ) #NEWLINE# if ( w . label is None ) : #NEWLINE# #INDENT# kw . update ( header = self . name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if self . label : #NEWLINE# #INDENT# kw . update ( header = self . label ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# kw . update ( header = self . label ) #NEWLINE# #UNINDENT# #UNINDENT# if ( not self . editable ) : #NEWLINE# #INDENT# kw . update ( editable = False ) #NEWLINE# #UNINDENT# if ( not self . sortable ) : #NEWLINE# #INDENT# kw . update ( sortable = False ) #NEWLINE# #UNINDENT# w = ( self . width or self . preferred_width ) #NEWLINE# kw . update ( width = js_code ( ( 'Lino.chars2width(%d)' % ( w + 1 ) ) ) ) #NEWLINE# '\n        We add 1 character (9 pixels) to the theoretic width.\n        e.g. the columns "16-24" etc in `courses.PendingCourseRequests`\n        has w=5 and should be rendered so that the header is visible.\n        ' #NEWLINE# return kw