All event handlers must return STOP or CONTINUE.

This is obscured by the fact that some of the really common events have helpers 
to register your handlers (e.g., register_for_packet_in()) which wrap the 
function you give them.  The wrappers return CONTINUE if you don't explicitly 
return something else. 

-- Murphy

On Apr 28, 2011, at 9:02 AM, karim torkmen wrote:

> Hi,
> I am using the authenticator module. But when I register for the 
> Host_auth_event I get tha following error:
> 
> pyrt|ERR:Python handler returned invalid Disposition
> 
> Here is a snippet:
> 
> from nox.netapps.authenticator      import pyauth
> 
> self.auth = self.resolve(pyauth.PyAuth)
> self.register_handler(pyauth.Auth_event.static_get_name(),self.auth_call_back)
> 
> def auth_call_back(self,var):
>       self.debugPrint("new host joined the net")
> 
> Any idea about this error ?
> 
> Thanks a lot,
> Karim
> 
> _______________________________________________
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev

_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to