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

Chapter 29. Registries with Global Utilities > Step 1: Defining the Interfaces

Step 1: Defining the Interfaces

Before you start coding away, you need to spend some time thinking about the API that you want to expose. In Chapter 30, “Local Utilities,” you'll develop a local/placeful equivalent of the utility, so the base interface, ISmileyTheme, should be general enough to support both implementations and not include any implementation-specific methods. You will then derive another interface, IGlobalSmileyTheme, from the general one that will specify methods to manage smileys for the global implementation. Note that the utility will still be registered as a ISmileyTheme.

You need to place the following interface implementation in the interfaces.py module:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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