• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 30. Local Utilities > Step 1: Defining the Interfaces

Step 1: Defining the Interfaces

As mentioned earlier in this chapter, you need two new interfaces. The first one is the ISmiley interface:

01 from zope.schema import Field
02
03 from zope.app.container.constraints import ContainerTypesConstraint
04 from zope.app.file.interfaces import IImage
05
06 class ISmiley(IImage):
07     """A smiley is just a glorified image"""
08     __parent__ = Field(
09         constraint = ContainerTypesConstraint(ISmileyTheme))


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint