Show
Ignore:
Timestamp:
08/27/08 01:48:08 (4 months ago)
Author:
dunker@…
Branch:
default
Message:

add gozernet/infoitem/+searchdescr to the cloud

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gozerplugs/plugs/infoitem.py

    r2258 r2262  
    279279        what = ievent.rest 
    280280    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 
    281292    result = info.searchdescr(what) 
    282293    if result: