safe.messaging.item.row module

InaSAFE Disaster risk assessment tool developed by AusAid - Row

Contact : ole.moller.nielsen@gmail.com

Note

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

class safe.messaging.item.row.Row(*args, **kwargs)[source]

Bases: safe.messaging.item.message_element.MessageElement

A class to model table rows in the messaging system

add(item)[source]

add a Cell to the row

list can be passed and are automatically converted to Cell

Args:
item an element to add to the Cells can be list or Cell object
Returns:
None
Raises:
Errors are propagated
to_html()[source]

Render a Text MessageElement as html

Args:
None
Returns:
Str the html representation of the Text MessageElement
Raises:
Errors are propagated
to_text()[source]

Render a Text MessageElement as plain text

Returns:The plain text representation of the row.
Return type:basestring