def reset(self): domain = self.participant.split('@')[1] robot = create_robot(run=False, domain=domain) preferences.create_preferences_wave(robot, self.participant) #wavelet = robot.fetch_wavelet(self.wave_id, '%s!root+conv' % domain) #general.participant_init(wavelet, self.participant) #general.participant_wavelet_init(wavelet, self.participant, self.participant) self.response.out.write(simplejson.dumps({ 'status': 0 }))
def fetch_wavelet(wave_id, wavelet_id, participant): from notifiy.robot import create_robot robot = create_robot(run=False, domain=participant.split('@')[1]) # TODO return robot.fetch_wavelet(wave_id, wavelet_id, participant) return robot.fetch_wavelet(wave_id, wavelet_id)
#! /usr/bin/python # -*- coding: UTF-8 -*- from notifiy.robot import create_robot if __name__ == '__main__': create_robot()