Mercurial > libervia-backend
diff src/bridge/bridge_constructor/bridge_template.ini @ 419:6c167a2e04b8
bridge: added generic D-Bus exception management + asyncCreateProfile method
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 02 Nov 2011 22:47:59 +0100 |
parents | dd4caab17008 |
children | 6c20c76abdcc |
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/bridge_template.ini Tue Nov 01 23:06:18 2011 +0100 +++ b/src/bridge/bridge_constructor/bridge_template.ini Wed Nov 02 22:47:59 2011 +0100 @@ -172,6 +172,7 @@ doc=Get all profiles [createProfile] +deprecated= type=method category=core sig_in=s @@ -182,6 +183,20 @@ - 0: Profile created - 1: The profile name already exists +[asyncCreateProfile] +async= +type=method +category=core +sig_in=s +sig_out= +doc=Create a new profile +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 + - "DATABASE": profile creation in database failed + [deleteProfile] type=method category=core