'register protocol: Registers application as a ÒhandlerÓ for this protocol with a given prefix. The handler will receive ÒOpenURLÓ, or if that fails, ÒGetURLÓ event.
Required argument: Application sig
Keyword argument for_protocol: protocol prefix: Òfinger:Ó, ÒfileÓ,
Keyword argument _attributes: AppleEvent attribute dictionary
Returns: TRUE if registration has been successful'

def register_protocol(self, _object=None, _attributes={}, **_arguments):

    _code = 'WWW!'
    _subcode = 'RGPR'
    aetools.keysubst(_arguments, self._argmap_register_protocol)
    _arguments['----'] = _object
    (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
    if _arguments.get('errn', 0):
        raise aetools.Error, aetools.decodeerror(_arguments)
    if _arguments.has_key('----'):
        return _arguments['----']
