gc_maybe_set_domain_id

one of the documented procedures in this installation of the ACS
Usage:
gc_maybe_set_domain_id
What it does:
For pages to which users have bookmarks with the old 'domain' primary key, derive domain_id from the domain variable set in the form.
Defined in: /web/philip/tcl/gc-defs.tcl

Source code:


    uplevel {
        if {![info exists domain_id] && [info exists domain]} {
            set db_sub [ns_db gethandle subquery]
            set domain_id [database_to_tcl_string_or_null $db_sub  "select domain_id from ad_domains
                                where domain = '[DoubleApos $domain]'"]
            ns_db releasehandle $db_sub
        }
    }


philg@mit.edu