Package Pyblio :: Module Store :: Class ResultSet
[show private | hide private]
[frames | no frames]

Type ResultSet

object --+
         |
        ResultSet

Known Subclasses:
ResultSet, ResultSet

A set of keys from the database.

These sets can be manually managed by the user or be the result of a query. They can be made persistent, and are then stored along with the database.

Note: this class is usually derived by every backend store.

Method Summary
  __delitem__(self, k)
Remove an item from the set.
  __iter__(self)
  __len__(self)
  add(self, k)
Add a new item in the set.
  destroy(self, k)
Delete and all the records contained in the result set.
  has_key(self)
  iteritems(self)
  iterkeys(self)
  itervalues(self)
  view(self, criterion)
  xmlwrite(self, fd)
    Inherited from object
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

__delitem__(self, k)
(Index deletion operator)

Remove an item from the set.
Parameters:
k - the key to remove from the set
           (type=instance of Key)

add(self, k)

Add a new item in the set.
Parameters:
k - the key to add to the set
           (type=instance of Key)

destroy(self, k)

Delete and all the records contained in the result set.

Generated by Epydoc 2.1 on Wed Feb 15 23:19:37 2006 http://epydoc.sf.net