def policy_edit(request,table):

	if "HTTP_REFERER" in request.META:
		# Checks if the referer page is the home or this page itself
		if request.META['HTTP_REFERER'] in "/dashboard" or "/policies" in request.META['HTTP_REFERER']:
			ruleTableSet = RuleTableManager.getAllInstances(RuleTableManager.getDefaultName())
			return simple.direct_to_template(request,
                                          template = 'policyEngine/policy_edit.html',
                                          extra_context = {'user': request.user,
                                                           'CurrentTable': ruleTableSet}
                                        )
	# If the access flow is incorrect, send home
	return HttpResponseRedirect("/")
dataset/ETHPy150Open fp7-ofelia/ocf/vt_manager/src/python/vt_manager/controller/dispatchers/ui/PolicyDispatcher.py/policy_edit/swapped operands of `in`