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

Chapter 35. Changing Traversal Behavior > Step 1: Creating a Non-Case-Sensitive...

Step 1: Creating a Non-Case-Sensitive Folder

In this chapter you'll implement a case-insensitive traverser and a sample folder, called CaseInsensitiveFolder, that uses this traverser. You'll develop the latter component first. All you need for the case-insensitive folder is an interface and a factory that provides this interface for a normal Folder instance.

First, you need to create a package called insensitivefolder in the book package. In the __init__.py file, you add the following interface and factory:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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