Forum OpenACS Development: Re: MIGRATION: ACS --> OPENACS 5.1.4

Collapse
Posted by Judith Pino Chial on
sorry for the poor information that i gave before....
----------------------------------------------------------
------
ERROR1:
------
wrong # args: should be "query statement_name result_name type sql args"
while executing
"query posiciones_creadas multirow $query"
("uplevel" body line 7)
invoked from within
"uplevel {

template::form create posiciones_creadas

set query "select nombre_pos, cod_pos
from procadm.t_cargos or..."
(procedure "code::tcl::/var/lib/aolserver/oacspa/packages/cargoxnombrami..." 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 "
(procedure "template::adp_parse" line 30)
invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
(procedure "adp_parse_ad_conn_file" line 5)
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/$path""
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
rp_serve_abstract_file "$root/$path"
set tcl_url2file([ad_conn url]) [ad_conn file]
set tcl_url2path_info..."
-----------------------------------------------------------
----
IN:
----
set query "select nombre_pos, cod_pos
rom procadm.t_cargos
order by nombre_pos asc"
query posiciones_creadas multirow $query
.......
-------------
I CHANGED TO:
-------------
ad_page_contract{
} {
poscrea
opcion
} -properties {
posiciones_creadas:multirow
}

db_multirow posiciones_creadas posiciones_creadas_query "select nombre_pos, cod_pos
from procadm.t_cargos order by nombre_pos asc"
----------------------------------------------------------
-------
ERROR2:
-------
invalid command name "ad_page_contract{"
while executing
"ad_page_contract{"
("uplevel" body line 5)
invoked from within
"uplevel {

template::form create posiciones_creadas

ad_page_contract{
} {
poscrea
opcion
} -properties {
posiciones_creadas:multiro..."
(procedure "code::tcl::/var/lib/aolserver/oacspa/packages/cargoxnombrami..." 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 "
(procedure "template::adp_parse" line 30)
invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
(procedure "adp_parse_ad_conn_file" line 5)
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/$path""
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
rp_serve_abstract_file "$root/$path"
set tcl_url2file([ad_conn url]) [ad_conn file]
set tcl_url2path_info..."
-----------------------------------------------------------
I dont know what to do...please..HELPME!