~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/client.py

  • Committer: Jelmer Vernooij
  • Date: 2011-03-30 11:45:54 UTC
  • mto: (5622.4.1 uninstall-hook)
  • mto: This revision was merged to the branch mainline in revision 5747.
  • Revision ID: jelmer@samba.org-20110330114554-zx7av89umf2dd9an
Don't require arguments to hooks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
193
193
 
194
194
class SmartClientHooks(hooks.Hooks):
195
195
 
196
 
    def __init__(self, module_name, member_name):
197
 
        hooks.Hooks.__init__(self, module_name, member_name)
 
196
    def __init__(self):
 
197
        hooks.Hooks.__init__(self, "bzrlib.smart.client", "_SmartClient.hooks")
198
198
        self.add_hook('call',
199
199
            "Called when the smart client is submitting a request to the "
200
200
            "smart server. Called with a bzrlib.smart.client.CallHookParams "
202
202
            "accessible.", None)
203
203
 
204
204
 
205
 
_SmartClient.hooks = SmartClientHooks("bzrlib.smart.client", "_SmartClient.hooks")
 
205
_SmartClient.hooks = SmartClientHooks()
206
206
 
207
207
 
208
208
class CallHookParams(object):