def is_edit_mode(request):
 return bool((could_edit(request) and request.session.get(EDIT_FLAG_NAME)))

def is_edit_mode ( request ) : return bool ( ( could_edit ( request ) and request . session . get ( EDIT_FLAG_NAME ) ) )
return true if the given request has xtheme editing enabled .