comparison src/memory/memory.py @ 759:93bd868b8fb6

backend, frontends: callbacks refactoring: - launchAction is now async, and return a dictionary for its result - no more action_id, actionResult* are deprecated - callback system is about to be unified
author Goffi <goffi@goffi.org>
date Tue, 24 Dec 2013 15:19:08 +0100
parents bbe55c7bee43
children bfabeedbf32e
comparison
equal deleted inserted replaced
758:86224a13cc1d 759:93bd868b8fb6
210 self.host = host 210 self.host = host
211 self.storage = storage 211 self.storage = storage
212 self.default_profile = None 212 self.default_profile = None
213 self.params = {} 213 self.params = {}
214 self.params_gen = {} 214 self.params_gen = {}
215 host.registerGeneralCB("registerNewAccount", host.registerNewAccountCB) 215 host.registerCallback(host.registerNewAccountCB, force_id="registerNewAccount")
216 216
217 def createProfile(self, profile): 217 def createProfile(self, profile):
218 """Create a new profile 218 """Create a new profile
219 @param profile: profile of the profile""" 219 @param profile: profile of the profile"""
220 #FIXME: must be asynchronous and call the callback once the profile actually exists 220 #FIXME: must be asynchronous and call the callback once the profile actually exists