Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes
MoinMoin.util.dataset.DictDataset Class Reference
Inheritance diagram for MoinMoin.util.dataset.DictDataset:
Inheritance graph
Collaboration diagram for MoinMoin.util.dataset.DictDataset:
Collaboration graph

List of all members.

Public Member Functions

def next
def __len__
def reset
def addRow

Public Attributes


Detailed Description

A dataset that stores dicts as the rows.

Definition at line 81 of file

Member Function Documentation

def MoinMoin.util.dataset.Dataset.__len__ (   self) [inherited]

Definition at line 52 of file

00053     def __len__(self):
00054         return len(

def MoinMoin.util.dataset.Dataset.addRow (   self,
) [inherited]
Add a row to the dataset.

Definition at line 70 of file

00071     def addRow(self, row):
00072         """ Add a row to the dataset.
00073         """

Return next row as a tuple, ordered by columns.

Reimplemented from MoinMoin.util.dataset.Dataset.

Definition at line 85 of file

00086     def next(self):
00087         row =
00088         return tuple([row[] for col in self.columns])

def MoinMoin.util.dataset.Dataset.reset (   self) [inherited]
Reset iterator to start.

Definition at line 55 of file

00056     def reset(self):
00057         """ Reset iterator to start.
00058         """
00059         self._pos = 0

Member Data Documentation

Definition at line 47 of file

Definition at line 48 of file

Definition at line 50 of file

The documentation for this class was generated from the following file: