Forum .LRN Q&A: creating departments

Collapse
Posted by Rafael Calvo on
Hi
I am trying dotlrn on oacs-5-2. When trying to create a department, I get:
invalid command name "site_node_apm_integration::new_site_node_and_package"
    while executing
"site_node_apm_integration::new_site_node_and_package  -name [ad_decode $url_part "" $community_type_key $url_part]  -parent_id $parent_node_id  -packa..."
    invoked from within
"set package_id [site_node_apm_integration::new_site_node_and_package  -name [ad_decode $url_part "" $community_type_key $url_part]  -parent_id $parent..."
    ("uplevel" body line 4)
    invoked from within
"uplevel 1 $transaction_code "
    (procedure "db_transaction" line 39)
    invoked from within
"db_transaction {
            set community_type_key [db_exec_plsql create_community_type {}]

            set package_id [site_node_apm_integration::n..."
    (procedure "dotlrn_community::new_type" line 7)
    invoked from within
"dotlrn_community::new_type  -community_type_key "$department_key"  -parent_type "dotlrn_class_instance"  -pretty_name $pretty_name  -description $desc..."
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $transaction_code "
    (procedure "db_transaction" line 39)
    invoked from within
"db_transaction {
            dotlrn_community::new_type  -community_type_key "$department_key"  -parent_type "dotlrn_class_instance"  -pretty_name $pr..."
    (procedure "dotlrn_department::new" line 14)
    invoked from within
"dotlrn_department::new  -department_key $department_key  -pretty_name $pretty_name  -description $description  -external_url $external_url"
    invoked from within
"if {[form is_valid add_department]} {
    form get_values add_department  pretty_name description external_url referer department_key

    set departm..."
    ("uplevel" body line 49)
    invoked from within
"uplevel {
    	  #
#  Copyright (C) 2001, 2002 MIT
#
#  This file is part of dotLRN.
#
#  dotLRN is free software; you can redistribute it and/or modi..."
    (procedure "code::tcl::/home/rafa/web/openacs-4/packages/dotlrn/www/admi..." 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..."
Just reporting since I think Roc and others are working on the dotlrn2-2 merge from oacs-5-1, oacs-5-2
cheers
Rafael
Collapse
2: Re: creating departments (response to 1)
Posted by Victor Guerra on
Hi Rafa,

I guess you installed dotlrn from oacs-5-1 over an acs-core checked out from oacs-5-2.

http://cvs.openacs.org/cvs/openacs-4/packages/acs-tcl/tcl/site-node-apm-integration-procs.tcl?r1=1.10.2.1&r2=1.10.2.2&only_with_tag=oacs-5-2

Cheers,
Victor Guerra.