Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acs-workflow
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
acs-workflow
Commits
92986bbe
Commit
92986bbe
authored
Nov 17, 2015
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- replace ad_parameter by im_parameter for OpenACS
parent
25dde0c9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
graph-procs.tcl
tcl/graph-procs.tcl
+9
-9
export-2.tcl
www/admin/export-2.tcl
+1
-1
workflow-copy-2.tcl
www/admin/workflow-copy-2.tcl
+1
-1
workflow-gif.tcl
www/workflow-gif.tcl
+1
-1
No files found.
tcl/graph-procs.tcl
View file @
92986bbe
...
...
@@ -239,12 +239,12 @@ ad_proc wf_generate_dot_representation {
set package_id
[
db_string package_id
{
select package_id from apm_packages where package_key='acs-workflow'
}]
set transition_font_name
[
ad
_parameter -package_id
$package
_id
"transition_font_name"
]
set place_font_name
[
ad
_parameter -package_id
$package
_id
"place_font_name"
]
set guard_font_name
[
ad
_parameter -package_id
$package
_id
"guard_font_name"
]
set transition_font_size
[
ad
_parameter -package_id
$package
_id
"transition_font_size"
]
set place_font_size
[
ad
_parameter -package_id
$package
_id
"place_font_size"
]
set guard_font_size
[
ad
_parameter -package_id
$package
_id
"guard_font_size"
]
set transition_font_name
[
im
_parameter -package_id
$package
_id
"transition_font_name"
]
set place_font_name
[
im
_parameter -package_id
$package
_id
"place_font_name"
]
set guard_font_name
[
im
_parameter -package_id
$package
_id
"guard_font_name"
]
set transition_font_size
[
im
_parameter -package_id
$package
_id
"transition_font_size"
]
set place_font_size
[
im
_parameter -package_id
$package
_id
"place_font_size"
]
set guard_font_size
[
im
_parameter -package_id
$package
_id
"guard_font_size"
]
# Add graph-specific info to the data structure
foreach type
{
transition place
}
{
...
...
@@ -372,8 +372,8 @@ ad_proc wf_graphviz_dot_exec {
}
{
ns_log Notice
"wf_graphviz_dot_exec: -to_file=
$to
_file_p -output=
$output
dot=
$dot
"
set package_id
[
db_string package_id
{
select package_id from apm_packages where package_key='acs-workflow'
}]
set graphviz_dot_path
[
ad
_parameter -package_id
$package
_id
"graphviz_dot_path"
]
set tmp_path
[
ad
_parameter -package_id
$package
_id
"tmp_path"
]
set graphviz_dot_path
[
im
_parameter -package_id
$package
_id
"graphviz_dot_path"
]
set tmp_path
[
im
_parameter -package_id
$package
_id
"tmp_path"
]
if
{
[
empty_string_p
$graphviz
_dot_path
]
}
{
return -code error
"Graphviz is not installed."
...
...
@@ -479,7 +479,7 @@ ad_proc wf_graphviz_installed_p {} {
@creation-date 29 September 2000
}
{
set package_id
[
db_string package_id
{
select package_id from apm_packages where package_key='acs-workflow'
}]
set graphviz_dot_path
[
ad
_parameter -package_id
$package
_id
"graphviz_dot_path"
]
set graphviz_dot_path
[
im
_parameter -package_id
$package
_id
"graphviz_dot_path"
]
return
[
expr
!
[
empty_string_p
$graphviz
_dot_path
]]
...
...
www/admin/export-2.tcl
View file @
92986bbe
...
...
@@ -31,7 +31,7 @@ set sql [wf_export_workflow -context_key $context_key $workflow_key]
if
{
[
string
equal
$format
"save"
]
}
{
set package_id
[
db_string package_id
{
select package_id from apm_packages where package_key='acs-workflow' and rownum=1
}]
set tmp_path
[
ad
_parameter -package_id
$package
_id
"tmp_path"
]
set tmp_path
[
im
_parameter -package_id
$package
_id
"tmp_path"
]
if
{
!
[
file
isdirectory
$tmp
_path
]
}
{
return -code error
"Parameter acs-workflow.tmp_path points to a non-existing directory:
$tmp
_path"
}
...
...
www/admin/workflow-copy-2.tcl
View file @
92986bbe
...
...
@@ -41,7 +41,7 @@ set sql [wf_export_workflow \
$workflow
_key
]
set
package_id
[
db_string package_id
{
select package_id from apm_packages where package_key='acs-workflow' and rownum=1
}]
set
tmp_path
[
ad
_parameter -package_id
$package
_id
"tmp_path"
]
set
tmp_path
[
im
_parameter -package_id
$package
_id
"tmp_path"
]
if
{
!
[
file
isdirectory
$tmp
_path
]
}
{
return -code error
"Parameter acs-workflow.tmp_path points to a non-existing directory:
$tmp
_path"
}
...
...
www/workflow-gif.tcl
View file @
92986bbe
...
...
@@ -27,7 +27,7 @@ set tmpfile [ns_set get $query_vars "tmpfile"]
# Make sure the tmpfile starts off with tmp_path
set
package_id
[
db_string package_id
{
select package_id from apm_packages where package_key='acs-workflow'
}]
set
tmp_path
[
ad
_parameter -package_id
$package
_id
"tmp_path"
]
set
tmp_path
[
im
_parameter -package_id
$package
_id
"tmp_path"
]
if
{[
string
first
$tmp
_path
$tmpfile
]
!= 0
}
{
ad_return_complaint 1
"Invalid argument: tmpfile='
$tmpfile
'"
ad_script_abort
...
...
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