[Zope3-checkins] SVN:
Zope3/trunk/src/zope/app/apidoc/presentation.py Fixed a bug in
adapter-function introspection.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sat Apr 16 10:49:53 EDT 2005
On Saturday 16 April 2005 09:52, Jim Fulton wrote:
> Modified: Zope3/trunk/src/zope/app/apidoc/presentation.py
> ===================================================================
> --- Zope3/trunk/src/zope/app/apidoc/presentation.py 2005-04-15 19:54:17
> UTC (rev 30012) +++
> Zope3/trunk/src/zope/app/apidoc/presentation.py 2005-04-16 13:52:26 UTC
> (rev 30013) @@ -67,7 +67,7 @@
> info['path'] = getPythonPath(factory)
>
> elif isinstance(factory, FunctionType):
> - info['path'] = getPythonPath(factory.factory)
> + info['path'] = getPythonPath(factory)
This is incorrect. Oftentimes we create functions out of factories. I have
changed these functions to have a factory attribute. So maybe we want to
check for the factory attribute in addition to the function test.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope3-Checkins
mailing list