Back to index

plone3  3.1.7
zopeconfig.py
Go to the documentation of this file.
00001 
00002 from kss.demo.interfaces import (
00003     IKSSDemoResource,
00004     IKSSSeleniumTestResource,
00005     )
00006 from kss.demo.resource import (
00007     KSSDemo,
00008     KSSSeleniumTestDirectory,
00009     )
00010 from zope.interface import implements
00011      
00012 # Create a mesh of provided interfaces
00013 # This is needed, because an utility must have a single interface.
00014 class IResource(IKSSDemoResource, IKSSSeleniumTestResource):
00015     pass
00016 
00017 # XXX you do not need to change anything above here
00018 # -------------------------------------------------
00019 
00020 class KSSDemos(object):
00021     implements(IResource)
00022 
00023     demos = (
00024         # List your demos here. 
00025         # (Second parameter can be a subcategory within the demo if needed.)
00026         KSSDemo('', 'Core syntax', 'kss_binder_classes.html', 'Binder class usage'),
00027 
00028         )
00029 
00030     # directories are relative from the location of this .py file
00031     selenium_tests = (
00032         # if you only have one test directory, you
00033         # need not change anything here.
00034         KSSSeleniumTestDirectory('selenium_tests'),
00035         )