diff 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
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/bridge_template.ini	Fri Feb 28 11:19:08 2014 +0100
+++ b/src/bridge/bridge_constructor/bridge_template.ini	Mon Mar 03 09:59:10 2014 +0100
@@ -192,18 +192,6 @@
 doc_return=dictionary of asked key,
  if key doesn't exist, the resulting dictionary will neither have the key
 
-[createProfile]
-deprecated=
-type=method
-category=core
-sig_in=s
-sig_out=i
-doc=Create a new profile
-doc_param_0=%(doc_profile)s
-doc_return=status of the creation:
- - 0: Profile created
- - 1: The profile name already exists
-
 [asyncCreateProfile]
 async=
 type=method
@@ -214,19 +202,22 @@
 doc_param_0=%(doc_profile)s
 doc_return=callback is called when profile actually exists in database and memory
 errback is called with error constant as parameter:
- - "CONFLICT": The profile name already exists
- - "CANCELED": profile creation canceled
+ - ConflictError: the profile name already exists
+ - CancelError: profile creation canceled
 
-[deleteProfile]
+[asyncDeleteProfile]
+async=
 type=method
 category=core
 sig_in=s
-sig_out=i
+sig_out=
 doc=Delete a profile
 doc_param_0=%(doc_profile)s
-doc_return=status of the deletion:
- - 0: Profile deleted
- - 1: The profile doesn't exists
+doc_return=callback is called when profile has been deleted from database and memory
+errback is called with error constant as parameter:
+ - ProfileUnknownError: the profile name is unknown
+ - ConnectedProfileError: a connected profile would not be deleted
+
 
 [registerNewAccount]
 deprecated=