diff options
Diffstat (limited to 'docs/tutorials/lxmlgraph/step04/myapp/views.py')
| -rw-r--r-- | docs/tutorials/lxmlgraph/step04/myapp/views.py | 13 |
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) |
