[Zope3-checkins] CVS: Zope3/src/zope/app/traversing - configure.zcml:1.5 namespace.py:1.3

Stephan Richter srichter@cbu.edu
Tue, 7 Jan 2003 07:27:58 -0500


Update of /cvs-repository/Zope3/src/zope/app/traversing
In directory cvs.zope.org:/tmp/cvs-serv14439/app/traversing

Modified Files:
	configure.zcml namespace.py 
Log Message:
Implementation of the OnlineHelp proposal. Since we do not have STX yet,
it works only with regular Text or HTML files at the moment. 

I added a box to the Rotterdam skin which shows all relevant Help Topics.
Currently you can only see a Help Topic for the File Upload screen. 

To Do:

  - Clean up code a bit.

  - Write Documentation (ZCML, Recipe, ...)

  - Implement STX or ReST support.

  - Writing Help File for the various screens!


=== Zope3/src/zope/app/traversing/configure.zcml 1.4 => 1.5 ===
--- Zope3/src/zope/app/traversing/configure.zcml:1.4	Sat Dec 28 12:49:33 2002
+++ Zope3/src/zope/app/traversing/configure.zcml	Tue Jan  7 07:27:55 2003
@@ -69,4 +69,8 @@
     name="module"
     handler="zope.app.traversing.namespace.module"
     />
+<traversalNamespace
+    name="help"
+    handler="zope.app.traversing.namespace.help"
+    />
 </zopeConfigure>


=== Zope3/src/zope/app/traversing/namespace.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/traversing/namespace.py:1.2	Mon Dec 30 11:11:57 2002
+++ Zope3/src/zope/app/traversing/namespace.py	Tue Jan  7 07:27:55 2003
@@ -215,6 +215,10 @@
         return Interface
     return ob
 
+def help(name, parameters, pname, ob, request):
+    """Used to traverse to an online help topic."""
+    return getService(ob, 'OnlineHelp')
+
 def view(name, parameters, pname, ob, request):
     if parameters:
         raise UnexpectedParameters(parameters)