repoze.folder

A ZODB folder implementation with object events
Download

repoze.folder Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Agendaless Consulting
  • Publisher web site:
  • http://www.repoze.org

repoze.folder Tags


repoze.folder Description

repoze.folder package provides a barebones ZODB folder implementation with object event support. Folders have a dictionary-like interface and emit "object events" on the addition and removal of objects when certain methods of this interface are exercised.Using a folder:>>> from repoze.folder import Folder>>> from persistent import Persistent>>> folder = Folder()>>> class Child(Persistent):>>> pass>>> folder = Child()>>> folder = Child()>>> list(folder.keys())>>> folder.get('child1')< Child object at ELIDED >>>> del folder>>> list(folder.keys())Folder objects are based on BTree code, so as long as you persist them, the folder should be able to contain many objects efficiently.Product's homepage


repoze.folder Related Software