Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-rest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-rest
Commits
ef5f2586
Commit
ef5f2586
authored
Aug 11, 2017
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Tree-Action:
Beautified code, removing duplicated code
parent
073327d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
project-task-tree-action.tcl
www/data-source/project-task-tree-action.tcl
+9
-16
No files found.
www/data-source/project-task-tree-action.tcl
View file @
ef5f2586
...
...
@@ -53,22 +53,15 @@ if {[catch {
if
{[
info
exists json_hash
(
_array_
)]}
{
set json_array
$json
_hash
(
_array_
)
ns_log Notice
"project-task-tree-action: pass=1, array=
$json
_array"
foreach array_elem
$json
_array
{
ns_log Notice
"project-task-tree-action: pass=1, array_elem=
$array
_elem"
set obj
[
lindex
$array
_elem 0
]
set json_list
[
lindex
$array
_elem 1
]
ns_log Notice
"project-task-tree-action: pass=1, decomposing array_elem:
$obj
=
$json
_list"
im_rest_project_task_tree_action -pass 1 -action
$action
-var_hash_list
$json
_list
}
ns_log Notice
"project-task-tree-action: pass=2, array=
$json
_array"
foreach array_elem
$json
_array
{
ns_log Notice
"project-task-tree-action: pass=2, array_elem=
$array
_elem"
set obj
[
lindex
$array
_elem 0
]
set json_list
[
lindex
$array
_elem 1
]
ns_log Notice
"project-task-tree-action: pass=2, decomposing array_elem:
$obj
=
$json
_list"
im_rest_project_task_tree_action -pass 2 -action
$action
-var_hash_list
$json
_list
foreach pass
{
1 2
}
{
ns_log Notice
"project-task-tree-action: pass=
$pass
, array=
$json
_array"
foreach array_elem
$json
_array
{
ns_log Notice
"project-task-tree-action: pass=
$pass
, array_elem=
$array
_elem"
set obj
[
lindex
$array
_elem 0
]
set json_list
[
lindex
$array
_elem 1
]
ns_log Notice
"project-task-tree-action: pass=
$pass
, decomposing array_elem:
$obj
=
$json
_list"
im_rest_project_task_tree_action -pass
$pass
-action
$action
-var_hash_list
$json
_list
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment