backend, bridge, frontends: actionNew has now a security_limit argument + added some docstring to explain data argument
This commit is contained in:
parent
2c8b91ee6c
commit
fbbb081425
2 changed files with 30 additions and 14 deletions
|
|
@ -126,8 +126,8 @@ class DbusObject(dbus.service.Object):
|
|||
pass
|
||||
|
||||
@dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX,
|
||||
signature='a{ss}ss')
|
||||
def actionNew(self, action_data, id, profile):
|
||||
signature='a{ss}sis')
|
||||
def actionNew(self, action_data, id, security_limit, profile):
|
||||
pass
|
||||
|
||||
@dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX,
|
||||
|
|
@ -590,8 +590,8 @@ class DBusBridge(Bridge):
|
|||
self.dbus_name = dbus.service.BusName(const_INT_PREFIX, self.session_bus)
|
||||
self.dbus_bridge = DbusObject(self.session_bus, const_OBJ_PATH)
|
||||
|
||||
def actionNew(self, action_data, id, profile):
|
||||
self.dbus_bridge.actionNew(action_data, id, profile)
|
||||
def actionNew(self, action_data, id, security_limit, profile):
|
||||
self.dbus_bridge.actionNew(action_data, id, security_limit, profile)
|
||||
|
||||
def actionResult(self, answer_type, id, data, profile):
|
||||
self.dbus_bridge.actionResult(answer_type, id, data, profile)
|
||||
|
|
|
|||
|
|
@ -112,14 +112,23 @@ doc_param_3=%(doc_profile)s
|
|||
[actionNew]
|
||||
type=signal
|
||||
category=core
|
||||
sig_in=a{ss}ss
|
||||
sig_in=a{ss}sis
|
||||
doc=A frontend action is requested
|
||||
doc_param_0=action_data: a dict where key can be:
|
||||
- xmlui: a XMLUI need to be displayed
|
||||
- progress: a progress id
|
||||
- meta_*: meta information on the action, used to make automation more easy,
|
||||
some are defined below
|
||||
- meta_from_jid: origin of the request
|
||||
- meta_type: type of the request, can be one of:
|
||||
- C.META_TYPE_FILE: a file transfer request validation
|
||||
- C.META_TYPE_OVERWRITE: a file overwriting confirmation
|
||||
- meta_progress_id: progress id linked to this action
|
||||
doc_param_1=id: action id
|
||||
This id can be used later by frontends to announce to other ones
|
||||
That the action is managed and can now be ignored.
|
||||
doc_param_2=%(doc_profile)s
|
||||
doc_param_2=%(doc_security_limit)s
|
||||
doc_param_3=%(doc_profile)s
|
||||
|
||||
[actionResult]
|
||||
deprecated=
|
||||
|
|
|
|||
Loading…
Reference in a new issue