def set_repoze_user(user_id):
 if ('repoze.who.plugins' in request.environ):
  rememberer = request.environ['repoze.who.plugins']['friendlyform']
  identity = {'repoze.who.userid': user_id}
  response.headerlist += rememberer.remember(request.environ, identity)

def set_repoze_user ( user_id ) : if ( 'repoze.who.plugins' in request . environ ) : rememberer = request . environ [ 'repoze.who.plugins' ] [ 'friendlyform' ] identity = { 'repoze.who.userid' : user_id } response . headerlist += rememberer . remember ( request . environ , identity )
set the repoze .