> ctx.req_equals("mybutton") >will return false while > dir(ctx.locals).has_key("mybutton") >will return true You probably need to use ctx.req_equals("mybutton.x") as is mentioned in passing about half way through Sec 4.3 in the manual.