Thanks for the tip. However, the ultimate goal is to cache the template output (e.g., I choose Genshi for its power at some expense of speed) and I'm sure many people would want to know how to juggle Pyramid/Beaker/XTemplate to make it work.
Jerry On Dec 13, 3:45 am, Daniel Holth <dho...@gmail.com> wrote: > Pyramid calls a view with the request if it accepts one positional > argument, but the cache decorator hides the function's signature so > Pyramid passes the context and the request. > > If you change your view to > > def home_view(context, request): > pass > > It will probably do something. However, str(context) and str(request) > will be part of the cache key, including all the browser headers, which > may not be what you want. It probably makes more sense to cache the > results of functions called by the view. > > Daniel -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-de...@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.