Package lemon :: Package db :: Package builder :: Class Row
[show private | hide private]
[frames | no frames]

Class Row


Method Summary
  __init__(self, database, table, column, rowid)
1.
  __eq__(self, other)
  __ge__(self, other)
  __getattr__(self, name)
  __getitem__(self, name)
  __gt__(self, other)
  __le__(self, other)
  __len__(self)
  __lt__(self, other)
  __ne__(self, other)
  __repr__(self)
  __setattr__(self, name, value)
  __setitem__(self, name, value)
  add(self, **params)
ERROR: You can't add a row to a row.
  dict(self)
  form(self, name, action, method, stickyData, enctype, submit)
Generate a lemon.html.form.Form object for the row, using the values of the columns in the particular row and the method attributes of this function.
  set(self, all, **params)
UPDATE Multiple rows...
  _getCol(self, name)
Finds a column by name or by order in the list.

Method Details

__init__(self, database, table, column, rowid=None)
(Constructor)

1. Creates a ColumnWrapper object so that the column list can be accessed via its attributes. 
   Attributes are then overridden so that it appears as the Row object is the column wrapper object. 
   This means that attribute access works for the columns and values needed from the row such as row.var which is the query builder.

2. Actually retrieves the data from the database, decodes it and assigns it to the columns using sql_setValue()

3. Assigns the current value to the HTML field representation using sql_setField()

add(self, **params)

ERROR: You can't add a row to a row. Instead add a row to the table object.

form(self, name='form', action='', method='get', stickyData={}, enctype=None, submit='Submit')

Generate a lemon.html.form.Form object for the row, using the values of the columns in the 
particular row and the method attributes of this function.

set(self, all=None, **params)

UPDATE Multiple rows

_getCol(self, name)

Finds a column by name or by order in the list. Returns that column object.

Generated by Epydoc 2.0 on Mon Nov 10 15:07:40 2003 http://epydoc.sf.net