[Zope3-checkins] SVN: Zope3/branches/3.2/src/zope/app/ Unfortunately, the book machinery of apidoc depends on components

Jim Fulton jim at zope.com
Tue Dec 20 17:39:57 EST 2005


Log message for revision 40923:
  Unfortunately, the book machinery of apidoc depends on components
  registered by apidoc itself.  This means that the bookchapter
  directive can only be used in configuration files loaded after
  apidocs's.  It would be better, in the future, to restructure the way
  apidoc works to delay processing of book chapters until they are
  needed.
  
  For now, used the (crude) ordering mechanisms of zcml actions to delay
  book-chapter processing.
  

Changed:
  U   Zope3/branches/3.2/src/zope/app/apidoc/bookmodule/metaconfigure.py
  U   Zope3/branches/3.2/src/zope/app/onlinehelp/metaconfigure.py

-=-
Modified: Zope3/branches/3.2/src/zope/app/apidoc/bookmodule/metaconfigure.py
===================================================================
--- Zope3/branches/3.2/src/zope/app/apidoc/bookmodule/metaconfigure.py	2005-12-20 20:34:50 UTC (rev 40922)
+++ Zope3/branches/3.2/src/zope/app/apidoc/bookmodule/metaconfigure.py	2005-12-20 22:39:56 UTC (rev 40923)
@@ -36,4 +36,5 @@
         discriminator = ('apidoc:bookchapter', parent, id),
         callable = book.registerHelpTopic,
         args = (parent, id, title, doc_path),
-        kw = {'resources': resources, 'class_': RESTOnlineHelpTopic})
+        kw = {'resources': resources, 'class_': RESTOnlineHelpTopic},
+        order=999999)

Modified: Zope3/branches/3.2/src/zope/app/onlinehelp/metaconfigure.py
===================================================================
--- Zope3/branches/3.2/src/zope/app/onlinehelp/metaconfigure.py	2005-12-20 20:34:50 UTC (rev 40922)
+++ Zope3/branches/3.2/src/zope/app/onlinehelp/metaconfigure.py	2005-12-20 22:39:56 UTC (rev 40923)
@@ -49,4 +49,5 @@
             discriminator=self._discriminator(),
             callable=globalhelp.registerHelpTopic,
             args=self._args(),
+            order=666666,
         )



More information about the Zope3-Checkins mailing list