vendor/Five/1.2b-r20590

view doc/products/ViewsTutorial/democontent.py @ 0:3673ed425f80

Vendor import of Five 1.2b+ (r20590)
author fguillaume
date Fri, 02 Dec 2005 20:25:42 +0000
parents
children
line source
1 from zope.interface import Interface, implements
2 from OFS.SimpleItem import SimpleItem
5 class IDemoContent(Interface):
7 def mymethod():
8 """Return some text.
9 """
12 class DemoContent(SimpleItem):
14 implements(IDemoContent)
16 def __init__(self, id, title):
17 self.id = id
18 self.title = title
20 def mymethod(self):
21 return "Hello world"