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 class KSSCoreDemos(object):
00018     implements(IResource)
00019 
00020     demos = (
00021         ##disable address book because tbody problem needs to be fixed on IE
00022         ##KSSDemo('', 'Applications',         "addressbook.html",             "Addressbook",
00023         ##        description = 'Small Addressbook application'),
00024         KSSDemo('', 'Applications',         "typewriter.html",              "Typewriter",
00025                 description = 'Typewriter application for learning typewriting',
00026                 helpfile = 'typewriter.rst',
00027                 packageName = 'kss.core.plugins.core.demo'),
00028         KSSDemo('', 'Applications', "snake.html", "Snake",
00029                 description = 'A simple implementation of the infamous snake game',
00030                 helpfile = 'snake.rst',
00031                 packageName = 'kss.core.plugins.core.demo'),
00032 ##      KSSDemo('', '',  "draganddrop.html", "Scriptaculous drag and drop"),
00033         KSSDemo('', 'Parameter functions', 'pf_forms.html',                 'Forms'),
00034         KSSDemo('', 'Selectors',            'selectors.html',               'Parent node selector'),
00035         KSSDemo('', 'Core syntax',          "kss_selector_param.html",      "Kss selector parameters"),
00036         KSSDemo('', 'Core syntax',          "kss_url_param.html",           "Kss url parameters"),
00037         KSSDemo('', 'Core events',          "kss_evt_preventbubbling.html", "Prevent bubbling KSS event parameter"),
00038         KSSDemo('', 'Core events',          "kss_keyevents.html",           "Key events"),
00039         KSSDemo('', 'Commands/Actions',     "ca_focus.html",                "Focus"),
00040         KSSDemo('', 'Commands/Actions',     "ca_cancel.html",               "action-cancel"),
00041         KSSDemo('', 'Commands/Actions',     "ca_kssattr.html",              "setKssAttribute"),
00042         KSSDemo('', 'Commands/Actions',     "actions.html",                 "Class actions: toggle, add, remove"),
00043         KSSDemo('', 'History',              "basic_commands.html",          "Change tag content"),
00044         KSSDemo('', 'History',              "two_selects.html",             "Two selects"),
00045         KSSDemo('', 'History',              "autoupdate.html",              "Auto update"),
00046         KSSDemo('', 'History',              "inline_edit.html",             "Inline edit"),
00047         KSSDemo('', 'History',              "cancel_submit.html",           "Cancel Submit Click"),
00048         KSSDemo('', 'History',              "tree.html",                    "Tree"),
00049         KSSDemo('', 'History',              "more_selectors.html",          "More complex selectors"),
00050         KSSDemo('', 'History',              "two_select_revisited.html",    "Master-slave selects revisited"),
00051         KSSDemo('', 'History',              "form_submit.html",             "Form submit"),
00052         KSSDemo('', 'History',              "effects.html",                 "Effects"),
00053         KSSDemo('', 'History',              "error_handling.html",          "Error handling"),
00054         KSSDemo('', 'History',              "preventdefault.html",          "Preventdefault (a.k.a. Safari workarounds)"),
00055         KSSDemo('', 'History',              "html_inserts.html",            "HTML insertions (Change tag content returns)"),
00056         KSSDemo('', 'History',              "client-server-protocol",       "Client server protocol"),
00057         )
00058 
00059     # directories are relative from the location of this .py file
00060     selenium_tests = (
00061         KSSSeleniumTestDirectory('selenium_tests'),
00062         )