Changes

Jump to: navigation, search

Zope HOWTO

49 bytes added, 5 years ago
lib/python/example/interfaces.py
</pre>
=== <tt>lib/python/example/interfaces.py</tt> ===
The following file defines the ''<tt>ITODO</tt>'' interface, and also uses some Zope Schema functions to define what kind of data we expect to store in objects that implement ''<tt>ITODO</tt>''. Edit <code>/lib/python/example/interfaces.py</code> with your favorite text editor:
<consolepre>
from zope.interface import Interface
from zope.schema import List, Text, TextLine, Int
daysleft = Int(title=u'Days left to complete', required=True)
description = Text(title=u'Description', required=True)
</consolepre>
=== <tt>lib/python/example/TODO.py</tt> ===
Anonymous user

Navigation menu