[kforge-dev] Changeset [1047]: Add 'user help' support for services, that is a snippet of html that is ...

10: Timeline admin at okfn.org
Thu Nov 30 20:33:12 UTC 2006


Add 'user help' support for services, that is a snippet of html that is incorporated into the service read page to assist users in using that service. The information is defined by a Plugin provider but can utilise service specific information (such as the service url). 

  * trunk/src/kforge/plugin/base.py: 

    * [AbstractServicePlugin?][1]: add getUserHelp(self, service) method which returns the empty string 

  * trunk/src/kforge/dom/service.py: add getUserHelp method which calls back into the associated concrete Plugin object method defined (see previous item) 
  * trunk/src/kforge/django/templates/kui/service/read.html 

    * remove service name items from list of service details and just repeats what is in the title 
    * add a Using this Service section which incorporates the snippet provided by getUserHelp (only displays if getUserHelp is non-empty) 

  * trunk/src/kforge/plugin/example.py: test getUserHelp functionality by adding it to the example plugin 

    [1]: http://project.knowledgeforge.net/kforge/trac/wiki/AbstractServicePlugin

URL: http://project.knowledgeforge.net/kforge/trac/changeset/1047




More information about the kforge-dev mailing list