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

Chapter 29. Registries with Global Utili... > Step 6: Setting Up Some Smiley Theme...

Step 6: Setting Up Some Smiley Themes

The service functionality is complete, and you are now ready to hook it up to the system. You need to define the service and provide an implementation to the component architecture before you add two smiley themes. Therefore, in the configure.zcml file, you add this:

01 <configure
02     xmlns="http://namespaces.zope.org/smiley"
03     i18n_domain="smileyutility">
04
05   <theme name="plain">
06     <smiley text=":("   file="./smileys/plain/sad.png"/>
07     <smiley text=":-("  file="./smileys/plain/sad.png"/>
08     <smiley text=":)"   file="./smileys/plain/smile.png"/>
09     <smiley text=":-)"  file="./smileys/plain/smile.png"/>
10     ...
11   </theme>
12
13   <theme name="yazoo">
14     <smiley text=":("   file="./smileys/yazoo/sad.png"/>
15     <smiley text=":-("  file="./smileys/yazoo/sad.png"/>
16     <smiley text=":)"   file="./smileys/yazoo/smile.png"/>
17     <smiley text=":-)"  file="./smileys/yazoo/smile.png"/>
18     ...
19   </theme>
20
21   <defaultTheme name="plain" />
22
23 </configure>


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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