Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Static Public Attributes
jabberbot.commands.BaseDataCommand Class Reference
Inheritance diagram for jabberbot.commands.BaseDataCommand:
Inheritance graph
Collaboration diagram for jabberbot.commands.BaseDataCommand:
Collaboration graph

List of all members.

Public Member Functions

def __init__

Public Attributes


Static Public Attributes

string description = u""
string parameter_list = u""

Detailed Description

Base class for all commands used by the XMPP component.

It has to support an optional data payload and store JID the
request has come from and provide a help string for its parameters.

Definition at line 73 of file

Constructor & Destructor Documentation

def jabberbot.commands.BaseDataCommand.__init__ (   self,
  presentation = u"text" 
A constructor

@param jid: Jabber ID to send the reply to
@param presentation: how to display results; "text" or "dataforms"
@type jid: unicode
@type presentation: unicode

Reimplemented in jabberbot.commands.GetPageHTML, and jabberbot.commands.GetPage.

Definition at line 86 of file

00087     def __init__(self, jid, presentation=u"text"):
00088         """A constructor
00090         @param jid: Jabber ID to send the reply to
00091         @param presentation: how to display results; "text" or "dataforms"
00092         @type jid: unicode
00093         @type presentation: unicode
00095         """
00096         self.jid = jid
00097 = None
00098         self.presentation = presentation

Member Data Documentation

Definition at line 96 of file

Definition at line 95 of file

Reimplemented in jabberbot.commands.Search.

Definition at line 97 of file

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