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

Chapter 34. Implementing TALES Namespace... > Step 4: Wiring the format Namespace ...

Step 4: Wiring the format Namespace into Zope 3

Now you are ready to hook up the format namespace to the rest of the framework. You do this by simply registering a normal adapter that provides the IPathAdapter interface. You place the following code into the configure.zcml file:

01 <configure 
02     xmlns="http://namespaces.zope.org/zope">
03
04   <adapter
05       for="*"
06       provides="zope.app.traversing.interfaces.IPathAdapter"
07       factory=".FormatTalesAPI"
08       name="format" />
09
10 </configure>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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