I register a pysvn.Client.callback_get_login callback , but I want my callback to be defined under my class, as a method, and then a global function.
So in my class I want to have something like:
self.client = pysvn.Client() self.client.callback_get_login = self.get_login
instead:
self.client = pysvn.Client() self.client.callback_get_login = get_login
But in the first fragment I get an error:
pysvn._pysvn_2_7.ClientError: unhandled exception in callback_get_login
Is there a way to assign a callback inside the class?
source share