Commit 86d6de65 authored by Christophe Dumez's avatar Christophe Dumez

- added function setDomainRootFromParam() to set the root of a listbox in tree...

- added function setDomainRootFromParam() to set the root of a listbox in tree mode given the name of the root


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9033 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 45d56747
......@@ -690,6 +690,13 @@ class SelectionTool( UniqueObject, SimpleItem ):
if REQUEST is not None:
return self._redirectToOriginalForm(REQUEST=REQUEST, form_id=form_id,
query_string=query_string)
security.declareProtected(ERP5Permissions.View, 'setDomainRootFromParam')
def setDomainRootFromParam(self, REQUEST, selection_name, domain_root):
if REQUEST is None:
return
selection = self.getSelectionFor(selection_name, REQUEST)
selection.edit(domain_path=domain_root, domain_list=())
security.declareProtected(ERP5Permissions.View, 'unfoldDomain')
def unfoldDomain(self, REQUEST, form_id=None, query_string=None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment