def set_device(request, device=u''):
 response = redirect(add_cache_bypass((next_url(request) or u'/')))
 set_cookie(response, u'mezzanine-device', device, (((60 * 60) * 24) * 365))
 return response

def set_device ( request , device = u'' ) : response = redirect ( add_cache_bypass ( ( next_url ( request ) or u'/' ) ) ) set_cookie ( response , u'mezzanine-device' , device , ( ( ( 60 * 60 ) * 24 ) * 365 ) ) return response
sets the current device .