Forum OpenACS Development: Re: XoWiki

Collapse
5: Re: XoWiki (response to 1)
Posted by Dave Bauer on
This looks nice.

I installed XoTcl 1.3.8 xotcl-core 0.18 and xowiki but I can't get it to work.

Here is the error message:

undefined variable `object_type_key'
    while executing
"ns_pg_bind select nsdb0 {
      select object_type from acs_object_types where
      tree_sortkey between :object_type_key and tree_right(:object_typ..."
    ("uplevel" body line 1)
    invoked from within
"uplevel $ulevel [list ns_pg_bind $type $db $sql]"
    ("postgresql" arm line 2)
    invoked from within
"switch $driverkey {
                oracle {
                    return [uplevel $ulevel [list ns_ora $type $db $sql] $args]
                }
       ..."

Sorry, I don't know enough XoTcl to debug it further. It appears that the object_type_key instvar is supposed to be set by the CrClass instproc init but apparently that has not happened?

It looks like its this code in index.tcl that is failing:

if {![info exists object_type]} {
  set object_types [$supertype object_types]
  set page_title "List of all kind of [$supertype set pretty_plural] \
    ([join $object_types {, }])"
  set with_subtypes true
  set object_type $supertype
} else {

Any hints?

Thanks!
Dave