def _link_active(kwargs):
 highlight_actions = kwargs.get('highlight_actions', kwargs.get('action', '')).split()
 return ((c.controller == kwargs.get('controller')) and (c.action in highlight_actions))

def _link_active ( kwargs ) : highlight_actions = kwargs . get ( 'highlight_actions' , kwargs . get ( 'action' , '' ) ) . split ( ) return ( ( c . controller == kwargs . get ( 'controller' ) ) and ( c . action in highlight_actions ) )
creates classes for the link_to calls .