summaryrefslogtreecommitdiff
path: root/repoze/bfg/interfaces.py
diff options
context:
space:
mode:
authorPaul Everitt <paul@agendaless.com>2008-07-18 14:23:58 +0000
committerPaul Everitt <paul@agendaless.com>2008-07-18 14:23:58 +0000
commitca9f9e3d16e8c84ab3958bf51ea78da09a089ea8 (patch)
tree9b579773821f76be8c261316acf572d686bf2b33 /repoze/bfg/interfaces.py
parent6b9fd1b81af54cd00d8b4dfe9ecd900941fdc17b (diff)
downloadpyramid-ca9f9e3d16e8c84ab3958bf51ea78da09a089ea8.tar.gz
pyramid-ca9f9e3d16e8c84ab3958bf51ea78da09a089ea8.tar.bz2
pyramid-ca9f9e3d16e8c84ab3958bf51ea78da09a089ea8.zip
Using Chris's help, changed signature of interface to support what the XSLT processors expects. Fixed tests to assert that interface.
Diffstat (limited to 'repoze/bfg/interfaces.py')
-rw-r--r--repoze/bfg/interfaces.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py
index f51e23cbf..4bb385438 100644
--- a/repoze/bfg/interfaces.py
+++ b/repoze/bfg/interfaces.py
@@ -13,6 +13,12 @@ class IView(Interface):
def __call__(*arg, **kw):
""" Must return an object that implements IResponse; args are
mapped into an IView's __call__ by mapply-like code """
+
+class INodeView(IView):
+ def __call__(node, **kw):
+ """ Must return an object that implements IResponse; node is an
+ lxml.etree Element and **kw provides parameters to an XSLT
+ processor """
class IViewFactory(Interface):
def __call__(context, request):