Author: batiste.bieler
Date: Wed Feb 25 11:34:40 2009
New Revision: 366
Modified:
trunk/pages/admin/utils.py
Log:
Fix issue 56
Modified: trunk/pages/admin/utils.py
==============================================================================
--- trunk/pages/admin/utils.py (original)
+++ trunk/pages/admin/utils.py Wed Feb 25 11:34:40 2009
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
+from copy import copy
from django.template import loader, Context, RequestContext,
TemplateDoesNotExist
from django.template.loader_tags import ExtendsNode
from django.http import Http404
@@ -21,7 +22,9 @@
context = details(request, only_context=True)
except Http404:
context = {}
- temp.render(RequestContext(request, context))
+ r = copy(request)
+ r.method = 'GET'
+ temp.render(RequestContext(r, context))
plist = []
placeholders_recursif(temp.nodelist, plist)
return plist
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" 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/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---