Changeset 8848 for branches/gajim_0.11.1
- Timestamp:
- 09/22/07 13:53:18 (14 months ago)
- Files:
-
- 1 modified
-
branches/gajim_0.11.1/src/common/events.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gajim_0.11.1/src/common/events.py
r8843 r8848 132 132 133 133 def get_events(self, account, jid = None, types = []): 134 '''if event is not specified, get all events from this jid, 134 '''returns all events from the given account of the form 135 {jid1: [], jid2: []} 136 if jid is given, returns all events from the given jid in a list: [] 135 137 optionnaly only from given type''' 136 138 if not self._events.has_key(account): 137 139 return [] 138 events_list = [] # list of events139 140 if not jid: 141 events_list = {} # list of events 140 142 for jid_ in self._events[account]: 141 143 events = [] … … 148 150 if not self._events[account].has_key(jid): 149 151 return [] 152 events_list = [] # list of events 150 153 for ev in self._events[account][jid]: 151 154 if not types or ev.type_ in types:
