comparison src/bridge/bridge_constructor/bridge_template.ini @ 893:308a96bc7c1b

core, frontends: add method asyncDeleteProfile, remove synchronous methods createProfile and deleteProfile
author souliane <souliane@mailoo.org>
date Mon, 03 Mar 2014 09:59:10 +0100
parents bfafed251b40
children a9401694d2dc
comparison
equal deleted inserted replaced
892:58107179cd97 893:308a96bc7c1b
190 doc_param_1=keys: list of keys to get 190 doc_param_1=keys: list of keys to get
191 doc_param_2=%(doc_profile)s 191 doc_param_2=%(doc_profile)s
192 doc_return=dictionary of asked key, 192 doc_return=dictionary of asked key,
193 if key doesn't exist, the resulting dictionary will neither have the key 193 if key doesn't exist, the resulting dictionary will neither have the key
194 194
195 [createProfile]
196 deprecated=
197 type=method
198 category=core
199 sig_in=s
200 sig_out=i
201 doc=Create a new profile
202 doc_param_0=%(doc_profile)s
203 doc_return=status of the creation:
204 - 0: Profile created
205 - 1: The profile name already exists
206
207 [asyncCreateProfile] 195 [asyncCreateProfile]
208 async= 196 async=
209 type=method 197 type=method
210 category=core 198 category=core
211 sig_in=s 199 sig_in=s
212 sig_out= 200 sig_out=
213 doc=Create a new profile 201 doc=Create a new profile
214 doc_param_0=%(doc_profile)s 202 doc_param_0=%(doc_profile)s
215 doc_return=callback is called when profile actually exists in database and memory 203 doc_return=callback is called when profile actually exists in database and memory
216 errback is called with error constant as parameter: 204 errback is called with error constant as parameter:
217 - "CONFLICT": The profile name already exists 205 - ConflictError: the profile name already exists
218 - "CANCELED": profile creation canceled 206 - CancelError: profile creation canceled
219 207
220 [deleteProfile] 208 [asyncDeleteProfile]
221 type=method 209 async=
222 category=core 210 type=method
223 sig_in=s 211 category=core
224 sig_out=i 212 sig_in=s
213 sig_out=
225 doc=Delete a profile 214 doc=Delete a profile
226 doc_param_0=%(doc_profile)s 215 doc_param_0=%(doc_profile)s
227 doc_return=status of the deletion: 216 doc_return=callback is called when profile has been deleted from database and memory
228 - 0: Profile deleted 217 errback is called with error constant as parameter:
229 - 1: The profile doesn't exists 218 - ProfileUnknownError: the profile name is unknown
219 - ConnectedProfileError: a connected profile would not be deleted
220
230 221
231 [registerNewAccount] 222 [registerNewAccount]
232 deprecated= 223 deprecated=
233 type=method 224 type=method
234 category=core 225 category=core