Index: openacs-4/packages/acs-templating/tcl/tag-init.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/tag-init.tcl,v diff -u -r1.18.2.1 -r1.18.2.2 --- openacs-4/packages/acs-templating/tcl/tag-init.tcl 25 Apr 2004 09:21:03 -0000 1.18.2.1 +++ openacs-4/packages/acs-templating/tcl/tag-init.tcl 2 Feb 2005 15:39:24 -0000 1.18.2.2 @@ -636,9 +636,9 @@ for { set i 0 } { $i < $size } { incr i } { set [ns_set key $params $i] [ns_set value $params $i] # substitute array variables - regsub {@([a-zA-z0-9_]+)\.([a-zA-z0-9_]+)@} [set [ns_set key $params $i]] {${\1(\2)}} [ns_set key $params $i] + regsub {@([a-zA-Z0-9_]+)\.([a-zA-Z0-9_.]+)@} [set [ns_set key $params $i]] {${\1(\2)}} [ns_set key $params $i] # substitute regular variables - regsub {@([a-zA-z0-9_:]+)@} [set [ns_set key $params $i]] {${\1}} [ns_set key $params $i] + regsub {@([a-zA-Z0-9_:]+)@} [set [ns_set key $params $i]] {${\1}} [ns_set key $params $i] } # And this needs to be executed at page execution time due to interactions with the Index: openacs-4/packages/acs-templating/tcl/tag-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/tag-procs.tcl,v diff -u -r1.9 -r1.9.4.1 --- openacs-4/packages/acs-templating/tcl/tag-procs.tcl 28 Aug 2003 09:41:45 -0000 1.9 +++ openacs-4/packages/acs-templating/tcl/tag-procs.tcl 2 Feb 2005 15:39:24 -0000 1.9.4.1 @@ -161,18 +161,18 @@ append condition "\[empty_string_p $arg1\]" } else { # substitute array variables - regsub {^"@([a-zA-z0-9_]+)\.([a-zA-z0-9_]+)@"$} $arg1 {\1(\2)} arg1 + regsub {^"@([a-zA-Z0-9_]+)\.([a-zA-Z0-9_.]+)@"$} $arg1 {\1(\2)} arg1 # substitute regular variables - regsub {^"@([a-zA-z0-9_:]+)@"$} $arg1 {\1} arg1 + regsub {^"@([a-zA-Z0-9_:]+)@"$} $arg1 {\1} arg1 append condition "\[template::util::is_nil $arg1\]" } set next $i } defined { # substitute variable references - regsub {^"@([a-zA-z0-9_]+)\.([a-zA-z0-9_]+)@"$} $arg1 {\1(\2)} arg1 - regsub {^"@([a-zA-z0-9_:]+)@"$} $arg1 {\1} arg1 + regsub {^"@([a-zA-Z0-9_]+)\.([a-zA-Z0-9_.]+)@"$} $arg1 {\1(\2)} arg1 + regsub {^"@([a-zA-Z0-9_:]+)@"$} $arg1 {\1} arg1 append condition "\[info exists $arg1\]" set next $i } Index: openacs-4/packages/acs-templating/tcl/util-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/util-procs.tcl,v diff -u -r1.17.2.1 -r1.17.2.2 --- openacs-4/packages/acs-templating/tcl/util-procs.tcl 25 Mar 2004 13:53:54 -0000 1.17.2.1 +++ openacs-4/packages/acs-templating/tcl/util-procs.tcl 2 Feb 2005 15:39:24 -0000 1.17.2.2 @@ -656,7 +656,7 @@ regsub -all "($name).($column_name)" $running_code "$name:${i}($column_name)" running_code } - regsub -all {@([A-z0-9_:\(\)]+)@} $running_code {${\1}} running_code + regsub -all {@([a-zA-Z0-9_:\(\)]+)@} $running_code {${\1}} running_code uplevel { eval $running_code