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

Chapter 33. Writing New ZCML Directives > Step 4: Testing the Directive

Step 4: Testing the Directive

The best way to test the directive is to use it. For example, you could have the view manage.html be redirected to manage for all folders. In a new configuration file, configure.zcml, you add the following directives:

01 <configure 
02     xmlns="http://namespaces.zope.org/browser">
03
04   <redirect
05       name="manage.html"
06       for="zope.app.folder.interfaces.IFolder"
07       url="manage" />
08
09 </configure>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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