Index: openacs-4/packages/xowf/tcl/test/xowf-test-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowf/tcl/test/xowf-test-procs.tcl,v diff -u -N -r1.8 -r1.9 --- openacs-4/packages/xowf/tcl/test/xowf-test-procs.tcl 23 Jul 2018 19:42:34 -0000 1.8 +++ openacs-4/packages/xowf/tcl/test/xowf-test-procs.tcl 26 Jul 2018 13:28:32 -0000 1.9 @@ -3,11 +3,11 @@ aa_register_case -cats {web} -procs { "::xowf::Package instproc initialize" "::xowiki::Package instproc invoke" - "::xo::Package instproc reply_to_user" + "::xo::Package instproc reply_to_user" } create_folder_with_page { Create a folder in a xowf instance with a form page and edit this - + } { # # Run the test under the current user_id. @@ -72,11 +72,11 @@ aa_register_case -cats {web} -procs { "::xowf::Package instproc initialize" "::xowiki::Package instproc invoke" - "::xo::Package instproc reply_to_user" + "::xo::Package instproc reply_to_user" } create_workflow_with_instance { Create a xowf workflow and a instance in a folder. - + } { # # Run the test under the current user_id. @@ -94,7 +94,7 @@ #set d [acs::test::http -user_id $user_id $instance/] #set set_cookies [ns_set array [dict get $d headers]] #aa_log set_cookies=$set_cookies - + set folder_info [::xowiki::test::require_test_folder \ -user_id $user_id \ -instance $instance \ @@ -106,7 +106,7 @@ set package_id [dict get $folder_info package_id] aa_true "folder_id '$folder_id' is not 0" {$folder_id != 0} - + ::xowiki::test::create_form \ -user_id $user_id \ -instance $instance \ @@ -128,7 +128,7 @@ } } aa_log "===== Form en:tip.form created" - + # # Create the TIP workflow # @@ -146,8 +146,8 @@ # next_state: state after activation of action # roles: a list of roles; if the current user has one of these # roles, he is allowed to perform the action - # Currently implemented roles: - # all, swa, registered_user, unregistered user, admin, + # Currently implemented roles: + # all, swa, registered_user, unregistered user, admin, # creator, app_group_member, community_member # Action save -roles admin @@ -161,20 +161,20 @@ # States # - form: the form to be used in a state # - view_method: Typically "view" (default) or "edit" - # State parameter {{form "en:tip-form"} {view_method edit}} + # State parameter {{form "en:tip-form"} {view_method edit}} # assigns the specified form to all states State parameter {{form "en:tip.form"} {extra_js 1.js}} State initial -actions {save propose} State proposed -actions {save accept reject} - State accepted -actions {save mark_implemented} + State accepted -actions {save mark_implemented} State rejected -actions {save} - State implemented -actions {save} + State implemented -actions {save} } form_constraints {@table:_name,wf_current_state,_creator,_last_modified} } - + aa_log "===== Workflow en:tip.wf created" # @@ -208,15 +208,15 @@ __action_propose "" } - + } on error {errorMsg} { aa_true "Error msg: $errorMsg" 0 } finally { #calendar::delete -calendar_id $temp_calendar_id } } - + } #