Forum OpenACS Q&A: variables between pages ad_page contract

Hello, someone could help me it's just that I have a problem passing variables between pages ad_page contract, because I get the following error:

entorno
Begin header
No registrado |
0 Miembros Conectado |
Entrar
Sitio Principal :
To Do List
Begin main content

Ha habido un error al procesar su petición. Disculpe las molestias.

Volver donde estaba (antes del error)
extra characters after close-brace
while executing
"ad_page_contract {
This page allows the users to add new items to their to do list or edit existing items.
}{
item_id:optional
}
set page_title "Add/E..."
("uplevel" body line 2)
invoked from within
"uplevel {
ad_page_contract {
This page allows the users to add new items to their to do list or edit existing items.
}{
item_id:optional
}
set ..."
(procedure "code::tcl::/usr/share/openacs/packages/todo/www/todo-ae" line 2)
invoked from within
"code::tcl::$__adp_stub"
invoked from within
"if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init tcl $__adp_stub
..."
("uplevel" body line 3)
invoked from within
"uplevel {

if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init t..."
(procedure "adp_prepare" line 2)
invoked from within
"adp_prepare"
invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
(procedure "adp_parse_ad_conn_file" line 6)
invoked from within
"$handler"
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
$handler
} ad_script_abort val {
# do nothing
}"
invoked from within
"rp_serve_concrete_file [ad_conn file]"
(procedure "rp_serve_abstract_file" line 60)
invoked from within
"rp_serve_abstract_file "$root/[ad_conn extra_url]""
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
rp_serve_abstract_file "$root/[ad_conn extra_url]"
set tcl_url2file([ad_conn url]) [ad_conn file]
set tcl..."

I'm working on debian 6.0 and the latest version of openacs, and the "OpenACS_Tutorial.pdf" (https://openacs.org/storage/view/tutorial%5C/OpenACS_Tutorial.pdf), page 22 .

thanks.

Collapse
Posted by Emmanuelle Raffenne on
Hi Juan,

It looks like a space is missing after the first close-brace:

ad_page_contract {
  This page allows the users to add new items to their to do list or edit existing items.
} {
item_id:optional
}

Hope that will help.

Collapse
Posted by Juan Mejia on
Thanks Emmanuelle, that was.