(self, locals=None)
return context
Internal helper function to create a derived context.
Internal helper function to create a derived context.
Internal helper function to create a derived context .
def derived(self, locals=None):
        """Internal helper function to create a derived context."""
        context = new_context(self.environment, self.name, {},
                              self.parent, True, None, locals)
        context.vars.update(self.vars)
        context.eval_ctx = self.eval_ctx
        context.blocks.update((k, list(v)) for k, v in iteritems(self.blocks))
        return context
def derived ( self , locals = None ) : context = new_context ( self . environment , self . name , { } , self . parent , True , None , locals ) context . vars . update ( self . vars ) context . eval_ctx = self . eval_ctx context . blocks . update ( ( k , list ( v ) ) for k , v in iteritems ( self . blocks ) ) return context