The toolbar request is the one passed into panel.render_content(request). Anything from the original request should've been put into panel.data (which was generated during the original request).
On Wed, Apr 30, 2014 at 5:14 PM, Jonathan Vanasco <[email protected]>wrote: > Does anyone have a recommendation for making the current request (for the > debugtoolbar itself) available to custom panel templates ? > > i just realized that the "request" which is passed along is the original > request -- not the request for the debugtoolbar panel. > > i tried passing into a template > > self.data = data = { 'request' : request , 'toolbar_request' > :pyramid.threadlocal.get_current_request() } > > however they, somehow, are both the inspected request. ( confirmed by > id() and inspecting the objects ) > > i can't seem to figure out how to access the current request, or how > get_current_request got associated with the inspected request. > > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/pylons-discuss. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.
