def context(self):

        # Site context
        context = self.site._contextCache

        from django.conf import settings
        static = '{0}{1}'.format(self.url_prefix, settings.STATIC_URL)
        if static.endswith(os.sep):
            static = static[:-1]
        context.update({
            'STATIC_URL': static,
            'ROOT_URL': self.url_prefix,
            'URL': self.path.replace(os.sep, "/"),
        })

        # Page context (parse header)
        context.update(parseValues(self.data())[0])

        return Context(context)
Main method for running the node code. Subclasses should implement this method.
dataset/ETHPy150Open randomknowledge/Cactus_Refactored/cactus/page.py/Page.context--crossover with--dataset/ETHPy150Open Stiivi/brewery/brewery/nodes/base.py/Node.run