Mercurial > libervia-backend
diff src/core/sat_main.py @ 1599:e2ed8009e66e
backend, bridge, frontends: actionNew has now a security_limit argument + added some docstring to explain data argument
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 14 Nov 2015 19:21:56 +0100 |
parents | b144babc2658 |
children | 2b82d846848e |
line wrap: on
line diff
--- a/src/core/sat_main.py Sat Nov 14 19:20:33 2015 +0100 +++ b/src/core/sat_main.py Sat Nov 14 19:21:56 2015 +0100 @@ -785,14 +785,15 @@ del client._waiting_conf[conf_id] cb(conf_id, accepted, data, profile) - def actionNew(self, action_data, profile): + def actionNew(self, action_data, security_limit=C.NO_SECURITY_LIMIT, profile=C.PROF_KEY_NONE): """Shortcut to bridge.actionNew which generate and id @param action_data(dict): action data (see bridge documentation) + @param security_limit: %(doc_security_limit)s @param profile: %(doc_profile)s """ id_ = unicode(uuid.uuid4()) - self.bridge.actionNew(action_data, id_, profile) + self.bridge.actionNew(action_data, id_, security_limit, profile) def registerProgressCb(self, progress_id, callback, profile): """Register a callback called when progress is requested for id"""