def accesskey(context, key):
 if ('_accesskeys' not in context):
  context.vars['_accesskeys'] = {}
 if (key not in context.vars['_accesskeys']):
  context.vars['_accesskeys'][key] = 1
  return ('accesskey="%s"' % key)
 return ''

def accesskey ( context , key ) : if ( '_accesskeys' not in context ) : context . vars [ '_accesskeys' ] = { } if ( key not in context . vars [ '_accesskeys' ] ) : context . vars [ '_accesskeys' ] [ key ] = 1 return ( 'accesskey="%s"' % key ) return ''
helper to output each access key only once .