[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/apidoc/ Fixed two
bugs discovered in tests build with '-b'
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon May 17 16:09:41 EDT 2004
Log message for revision 24788:
Fixed two bugs discovered in tests build with '-b'
-=-
Modified: Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py 2004-05-17 20:02:49 UTC (rev 24787)
+++ Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py 2004-05-17 20:09:40 UTC (rev 24788)
@@ -140,7 +140,7 @@
>>> fname = module.getFileName()
>>> fname = fname.replace('\\\\', '/') # normalize pathname separator
- >>> 'src/zope/app/apidoc/__init__.py' in fname
+ >>> 'zope/app/apidoc/__init__.py' in fname
True
>>> module.getPath()
Modified: Zope3/trunk/src/zope/app/apidoc/viewmodule/browser.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/viewmodule/browser.py 2004-05-17 20:02:49 UTC (rev 24787)
+++ Zope3/trunk/src/zope/app/apidoc/viewmodule/browser.py 2004-05-17 20:09:40 UTC (rev 24788)
@@ -111,12 +111,12 @@
>>> info = _getFactoryData(view)
Normalize pathname separators.
- >>> info['template'] = info['template'].replace('\\\\', '/')
+ >>> info['template'] = info['template'].replace('\\\\', '/')[-35:]
>>> pprint(info)
[('path', 'zope.app.pagetemplate.simpleviewclass.simple'),
('referencable', True),
('resource', None),
- ('template', 'Zope3/src/zope/app/apidoc/viewmodule/index.pt'),
+ ('template', 'zope/app/apidoc/viewmodule/index.pt'),
('url', 'zope/app/pagetemplate/simpleviewclass/simple')]
The factory is a simple type:
More information about the Zope3-Checkins
mailing list