~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/client.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-03-31 16:28:11 UTC
  • mfrom: (5622.3.15 more-lazy-hooks)
  • Revision ID: pqm@pqm.ubuntu.com-20110331162811-w1uw1lgpr5fiawp5
(jelmer) Support installing lazy hooks for all existing hook points,
 deprecate Hooks.create_hook. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
class SmartClientHooks(hooks.Hooks):
195
195
 
196
196
    def __init__(self):
197
 
        hooks.Hooks.__init__(self)
198
 
        self.create_hook(hooks.HookPoint('call',
 
197
        hooks.Hooks.__init__(self, "bzrlib.smart.client", "_SmartClient.hooks")
 
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 "
201
201
            "object. Streaming request bodies, and responses, are not "
202
 
            "accessible.", None, None))
 
202
            "accessible.", None)
203
203
 
204
204
 
205
205
_SmartClient.hooks = SmartClientHooks()