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

Chapter 30. Local Utilities > Step 2: Implementing a Smiley

Step 2: Implementing a Smiley

Implementing a smiley is trivial. In a new Python file called localtheme.py, you need to add the following code:

01 from zope.interfaces import implements
02 from zope.app.file.image import Image
03 from interfaces import ISmiley
04
05 class Smiley(Image):
06     implements(ISmiley)


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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