Skip to content
Browse files

Add repoze.bfg.convention support.

git-svn-id: http://svn.repoze.org/repoze.bfg.xmlrpc/trunk@2447 8f1d8bf8-68d2-4fbe-a113-2afb08c80ed9
  • Loading branch information...
1 parent 64d2952 commit 116b941397ee2bf6c6d188a4c4c5392e26e2b624 Chris McDonough chrism@agendaless.com committed
Showing with 7 additions and 0 deletions.
  1. +5 −0 CHANGES.txt
  2. +1 −0 repoze/bfg/xmlrpc/__init__.py
  3. +1 −0 repoze/bfg/xmlrpc/tests.py
View
5 CHANGES.txt
@@ -1,6 +1,11 @@
repoze.bfg.xmlrpc Changelog
===========================
+0.2 (11/18/2008)
+----------------
+
+- Add repoze.bfg.convention support.
+
0.1 (11/18/2008)
----------------
View
1 repoze/bfg/xmlrpc/__init__.py
@@ -88,6 +88,7 @@ def _curried(context, request):
value = wrapped(context, *params)
return xmlrpc_response(value)
_curried.__name__ = wrapped.__name__
+ _curried.__grok_module__ = wrapped.__module__ # r.bfg.convention support
return _curried
View
1 repoze/bfg/xmlrpc/tests.py
@@ -65,6 +65,7 @@ def unwrapped(context, what):
return what
wrapped = self._callFUT(unwrapped)
self.assertEqual(wrapped.__name__, 'unwrapped')
+ self.assertEqual(wrapped.__grok_module__, unwrapped.__module__)
context = testing.DummyModel()
request = testing.DummyRequest()
param = 'what'

0 comments on commit 116b941

Please sign in to comment.
Something went wrong with that request. Please try again.