Hey guys,

I was wondering why we don't set up xheaders for the product detail page?
That way an admin can edit a product using the excellent admin bookmarklets.

Here is a diff of what it would take, not bad at all:
diff -r 2f33cb3855de satchmo/apps/product/views/__init__.py
--- a/satchmo/apps/product/views/__init__.py    Sun Aug 23 20:36:28 2009
-0500
+++ b/satchmo/apps/product/views/__init__.py    Fri Sep 25 12:27:11 2009
-0500
@@ -1,5 +1,6 @@
 from decimal import Decimal
 from django import http
+from django.core.xheaders import populate_xheaders
 from django.shortcuts import get_object_or_404, render_to_response
 from django.template import RequestContext
 from django.template.loader import select_template
@@ -146,7 +147,9 @@

     template = find_product_template(product, producttypes=subtype_names)
     context = RequestContext(request, extra_context)
-    return http.HttpResponse(template.render(context))
+    response = http.HttpResponse(template.render(context))
+    populate_xheaders(request, response, Product, product.id)
+    return response


 def get_price(request, product_slug):

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to