[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/apidoc/static.py Add
option to allow loading new modules.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Oct 31 14:36:02 EST 2005
Log message for revision 39781:
Add option to allow loading new modules.
Changed:
U Zope3/trunk/src/zope/app/apidoc/static.py
-=-
Modified: Zope3/trunk/src/zope/app/apidoc/static.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/static.py 2005-10-31 19:22:35 UTC (rev 39780)
+++ Zope3/trunk/src/zope/app/apidoc/static.py 2005-10-31 19:36:01 UTC (rev 39781)
@@ -204,6 +204,9 @@
classregistry.IGNORE_MODULES = self.options.ignore_modules
+ if self.options.import_unknown_modules:
+ classregistry.__import_unknown_modules__ = True
+
# Work through all links until there are no more to work on.
self.sendMessage('Starting retrieval.')
while self.linkQueue:
@@ -401,6 +404,13 @@
the scope of the generated API documentation.
""")
+retrieval.add_option(
+ '--load-all', '-l', action="store_true", dest='import_unknown_modules',
+ help="""\
+Retrieve all referenced modules, even if they have not been imported during
+the startup process.
+""")
+
parser.add_option_group(retrieval)
######################################################################
@@ -450,6 +460,7 @@
'--add', '@@/tree_images/plus_vline.png',
'--ignore', 'twisted',
'--ignore', 'zope.app.twisted.ftp.test',
+ '--load-all'
]
def merge_options(options, defaults):
More information about the Zope3-Checkins
mailing list