safe.messaging.item.cell module

InaSAFE Disaster risk assessment tool developed by AusAid - Cell.

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.cell.Cell(*args, **kwargs)[source]

Bases: safe.messaging.item.message_element.MessageElement

A class to model table cells in the messaging system

to_html()[source]

Render a Cell MessageElement as html

Returns:The html representation of the Cell MessageElement
Return type:basestring
to_json()[source]

Render a MessageElement queue as JSON

Returns:Json representation of the Text MessageElement.
Return type:str
to_markdown()[source]

Render a MessageElement queue as markdown

Returns:Markdown representation of the Text MessageElement.
Return type:str
to_text()[source]

Render a Cell MessageElement as plain text

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