#NEWLINE# def handler_item( self , mi , handler , help_text ) : #NEWLINE# #INDENT# d = dict ( text = prepare_label ( mi ) , handler = js_code ( handler ) ) #NEWLINE# if ( mi . bound_action and mi . bound_action . action . icon_name ) : #NEWLINE# #INDENT# d . update ( iconCls = ( 'x-tbar-' + mi . bound_action . action . icon_name ) ) #NEWLINE# #UNINDENT# if ( settings . SITE . use_quicktips and help_text ) : #NEWLINE# #INDENT# d . update ( listeners = dict ( render = js_code ( ( 'Lino.quicktip_renderer(%s,%s)' % ( py2js ( 'Foo' ) , py2js ( help_text ) ) ) ) ) ) #NEWLINE# #UNINDENT# return d