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
[legend]
Collaboration diagram for MoinMoin.util.dataset.DictDataset:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def next
def __len__
def reset
def addRow

Public Attributes

 columns
 data
 data_id

Detailed Description

A dataset that stores dicts as the rows.

Definition at line 81 of file dataset.py.


Member Function Documentation

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

Definition at line 52 of file dataset.py.

00052 
00053     def __len__(self):
00054         return len(self.data)

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

Definition at line 70 of file dataset.py.

00070 
00071     def addRow(self, row):
00072         """ Add a row to the dataset.
00073         """
00074         self.data.append(row)
00075 

Return next row as a tuple, ordered by columns.

Reimplemented from MoinMoin.util.dataset.Dataset.

Definition at line 85 of file dataset.py.

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

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

Definition at line 55 of file dataset.py.

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


Member Data Documentation

Definition at line 47 of file dataset.py.

Definition at line 48 of file dataset.py.

Definition at line 50 of file dataset.py.


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