def get_content(self, name, context):
        """
        Get the content of a template hook. Used internally by the hook
        templatetag.

        If the referenced hook name has not been manually registered and there
        are no hooks attached to it, a warning is issued.
        """

        try:
            signal = self._registry[name]
        except __HOLE__:
            message = ("There are no connected functions for the hook '%s'." %
                       name)
            warnings.warn(message, RuntimeWarning)
            return u''

        content = []
        signal.send(sender=self, context=context, content=content)

        return u'\n'.join(content)
dataset/ETHPy150Open weluse/django-templatehooks/templatehooks/registry.py/HookRegistry.get_content