Back to index

plone3  3.1.7
Public Member Functions
kss.demo.interfaces.IKSSDemoRegistry Class Reference
Inheritance diagram for kss.demo.interfaces.IKSSDemoRegistry:
Inheritance graph
[legend]
Collaboration diagram for kss.demo.interfaces.IKSSDemoRegistry:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def registerDemo
def unregisterDemo
def getSortedDemos

Detailed Description

Faciliates registration of demos.

Implementations must look after the IKSSDemoResource
adapters, and use their content to set up themselves.

Definition at line 82 of file interfaces.py.


Member Function Documentation

Get the (sorted) list of demos

Definition at line 110 of file interfaces.py.

00110 
00111     def getSortedDemos():
00112         """Get the (sorted) list of demos"""

Faciliates registration of demos.

Implementations must look after the IKSSDemoResource
adapters, and use their content to set up themselves.
Register a demo

It has the attributes specified in IKSSDemo:

plugin_namespace - string with the name of the plugin.
           Or: "" when it is the core part.

category         - text that will appear as the title of the
           category. "" if out of category.

demo_page        - (relative) url of the demo page. This should
           traverse on ISimpleContent.

title            - Title of the demo. This also identifies it
           for removal.

Definition at line 89 of file interfaces.py.

00089 
00090     def registerDemo(demo):
00091         """Register a demo
00092 
00093         It has the attributes specified in IKSSDemo:
00094 
00095         plugin_namespace - string with the name of the plugin.
00096                            Or: "" when it is the core part.
00097 
00098         category         - text that will appear as the title of the
00099                            category. "" if out of category.
00100 
00101         demo_page        - (relative) url of the demo page. This should
00102                            traverse on ISimpleContent.
00103 
00104         title            - Title of the demo. This also identifies it
00105                            for removal.
00106         """
 

Here is the caller graph for this function:

Unregister the given demo.

Definition at line 107 of file interfaces.py.

00107 
00108     def unregisterDemo(demo):
00109         """Unregister the given demo."""

Here is the caller graph for this function:


The documentation for this class was generated from the following file: