Changeset 2262:458867491ec4 for gozerplugs/plugs/infoitem.py
- Timestamp:
- 08/27/08 01:48:08 (4 months ago)
- Branch:
- default
- Files:
-
- 1 modified
-
gozerplugs/plugs/infoitem.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gozerplugs/plugs/infoitem.py
r2258 r2262 279 279 what = ievent.rest 280 280 what = what.strip().lower() 281 if cloud.enabled: 282 def cb(client, request): 283 if request.error: 284 ievent.reply("%s: %s" % (client.host, request.error)) 285 if request.data: 286 res = [] 287 for result in request.data: 288 res.append("[%s] %s" % (result[0], result[1])) 289 ievent.reply("%s: " % client.host, res, dot=True) 290 cloud.dopost('gozernet/infoitem/+searchdescr', cb, searchitem=what) 291 return 281 292 result = info.searchdescr(what) 282 293 if result:
