2010-07-18 38 views
0

當我編輯小波的root_blip時,一切正常,但如果我取小波,在googleWave和日誌(沒有發生錯誤)中都不會發生任何事情,雖然「wave_list.reply(text)」起作用。我做了myRobot.setup_oauth()無法編輯提取的小波的root_blip

def OnWaveletSelfAdded(event, wavelet): 
    text = "123" 
    wave_list = myRobot.fetch_wavelet(wave_id="googlewave.com!w+O5yFQIteC", wavelet_id="googlewave.com!conv+root") 
    wave_list.submit_with(wavelet) 
    root_blip = wave_list.root_blip 
    root_blip.all().delete() 
    root_blip.append("WaveList\n" + text) 
    logging.info("root_blip.wave_id: %s" % root_blip.wave_id) 

我在做什麼錯?我試過myRobot.submit(wave_list) - 還沒有結果

回答

0
wave_list = myRobot.fetch_wavelet(wave_id = wave_id, wavelet_id="googlewave.com!conv+root") 
    root_blip = wave_list.root_blip 
    root_blip.all().delete() 
    root_blip.append("WaveList:\n") 
    myRobot.submit(wave_list) 

解決...