Back to index

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

List of all members.

Public Member Functions

def __init__

Public Attributes

 term
 search_type
 presentation
 case
 mtime
 regexp
 jid
 data

Static Public Attributes

string description = u"perform a wiki search"
string parameter_list = u"{title|text} term"

Detailed Description

Definition at line 134 of file commands.py.


Constructor & Destructor Documentation

def jabberbot.commands.Search.__init__ (   self,
  jid,
  search_type,
  args,
  kwargs 
)

Definition at line 139 of file commands.py.

00139 
00140     def __init__(self, jid, search_type, *args, **kwargs):
00141         BaseDataCommand.__init__(self, jid)
00142 
00143         if not JID(jid).resource:
00144             raise ValueError("The jid argument must be a full jabber id!")
00145 
00146         self.term = ' '.join(args)
00147         self.search_type = search_type
00148         self.presentation = kwargs.get('presentation', 'text') # "text" or "dataforms"
00149         self.case = kwargs.get('case', False)
00150         self.mtime = None
00151         self.regexp = kwargs.get('regexp', False)
00152 


Member Data Documentation

Definition at line 148 of file commands.py.

Definition at line 96 of file commands.py.

string jabberbot.commands.Search.description = u"perform a wiki search" [static]

Reimplemented from jabberbot.commands.BaseDataCommand.

Definition at line 136 of file commands.py.

Definition at line 95 of file commands.py.

Definition at line 149 of file commands.py.

string jabberbot.commands.Search.parameter_list = u"{title|text} term" [static]

Reimplemented from jabberbot.commands.BaseDataCommand.

Definition at line 137 of file commands.py.

Reimplemented from jabberbot.commands.BaseDataCommand.

Definition at line 147 of file commands.py.

Definition at line 150 of file commands.py.

Definition at line 146 of file commands.py.

Definition at line 145 of file commands.py.


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