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

Chapter 37. Using TALES Outside Page Templates > The TALES Filesystem Runner

The TALES Filesystem Runner

In this chapter you'll learn about the TALES-based filesystem accessor, which provides a great tree with lots of nodes. Your first task is to provide some objects that represent directories and regular files and that ignore other file types. Directories should be simple, read-only mapping objects (that is, they should behave like dictionaries). That should not be too hard to do.

To begin creating the filesystem simulation, you need to open a new file called talesrunner.py and add the following two classes to it:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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