Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Static Private Attributes
MoinMoin.util.dataset.Column Class Reference

List of all members.

Public Member Functions

def __init__

Public Attributes

 name

Static Private Attributes

list _SLOTS

Detailed Description

Meta-data for a column.

Definition at line 12 of file dataset.py.


Constructor & Destructor Documentation

def MoinMoin.util.dataset.Column.__init__ (   self,
  name,
  kw 
)
Init a column

keys in kw that not in slots are ignored.

@param name: column name, unicode or ascii
@param kw: column meta data, unicode or ascii

Definition at line 24 of file dataset.py.

00024 
00025     def __init__(self, name, **kw):
00026         """ Init a column
00027 
00028         keys in kw that not in slots are ignored.
00029 
00030         @param name: column name, unicode or ascii
00031         @param kw: column meta data, unicode or ascii
00032         """
00033         self.name = name
00034         for slot, defval in self._SLOTS:
00035             setattr(self, slot, kw.get(slot, defval))
00036 


Member Data Documentation

list MoinMoin.util.dataset.Column._SLOTS [static, private]
Initial value:
[
        ('label', ''),
        ('sortable', 0),
        ('hidden', 0),
        ('align', ''),
        ('autofilter', 0),
        ]

Definition at line 16 of file dataset.py.

Definition at line 32 of file dataset.py.


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