summaryrefslogtreecommitdiff
path: root/docs/tutorials/lxmlgraph/step04/myapp/views.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-05-01 10:26:57 +0000
committerChris McDonough <chrism@agendaless.com>2009-05-01 10:26:57 +0000
commitba9b0e647bff1bf0c437ab204ddf11783ed698f8 (patch)
tree1952ebfdc40ae71a3bc54eb10a92a0fe1e8273ec /docs/tutorials/lxmlgraph/step04/myapp/views.py
parentbc0698e1ac67106346d8c006bddcb38370f7c16b (diff)
downloadpyramid-ba9b0e647bff1bf0c437ab204ddf11783ed698f8.tar.gz
pyramid-ba9b0e647bff1bf0c437ab204ddf11783ed698f8.tar.bz2
pyramid-ba9b0e647bff1bf0c437ab204ddf11783ed698f8.zip
Merge "c-free" branch to trunk.
Diffstat (limited to 'docs/tutorials/lxmlgraph/step04/myapp/views.py')
-rw-r--r--docs/tutorials/lxmlgraph/step04/myapp/views.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/docs/tutorials/lxmlgraph/step04/myapp/views.py b/docs/tutorials/lxmlgraph/step04/myapp/views.py
deleted file mode 100644
index f079cea8c..000000000
--- a/docs/tutorials/lxmlgraph/step04/myapp/views.py
+++ /dev/null
@@ -1,13 +0,0 @@
-from repoze.bfg.xslt import render_transform_to_response
-
-# Some constants
-XML_NAMESPACE='http://www.w3.org/XML/1998/namespace'
-XML_PREFIX= '{%s}' % XML_NAMESPACE
-
-def xslt_view(context, request):
- # Grab the root of the tree, which should be a <site>
- site = context.getroottree().getroot()
- # Jot down which node we're sitting on as the <context>
- contextid = "'%s'" % context.get(XML_PREFIX+'id')
- return render_transform_to_response("xsltview.xsl", site,
- contextid=contextid)