basic setup for menu.py and unit testing
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@543 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
06a9137517
commit
5e06995598
2 changed files with 3 additions and 2 deletions
|
@ -1,9 +1,10 @@
|
|||
Creating and Rendering Menus
|
||||
============================
|
||||
|
||||
We first set up a test environment:
|
||||
We first set up a test and working environment:
|
||||
|
||||
>>> from zope.app.testing import ztapi
|
||||
>>> from cybertools.menu import Menu
|
||||
|
||||
Create a menu:
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ from zope.app.container.interfaces import IOrderedContainer
|
|||
from zope.schema import Text, TextLine, List, Object, Int
|
||||
|
||||
|
||||
class IMenu(Interface):
|
||||
class IMenu(IOrderedContainer):
|
||||
""" A Menu.
|
||||
"""
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue