attribute::datatype_validator_exists_p (public)

 attribute::datatype_validator_exists_p datatype

Defined in packages/acs-subsite/tcl/attribute-procs.tcl

Returns 1 if we have a validator for this datatype. 0 otherwise. We currently do not support the "date" datatype and hardcoded support for enumeration. This is hardcoded in this procedure. Also, this procedure assumes that validators are procedures named ::template::data::validate::$datatype

Parameters:
datatype
Author:
Michael Bryzek <mbryzek@arsdigita.com>
Created:
12/2000

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_subsite_attribute_datatypes acs_subsite_attribute_datatypes (test acs-subsite) attribute::datatype_validator_exists_p attribute::datatype_validator_exists_p test_acs_subsite_attribute_datatypes->attribute::datatype_validator_exists_p attribute::translate_datatype attribute::translate_datatype (public) attribute::translate_datatype->attribute::datatype_validator_exists_p packages/acs-subsite/www/admin/attributes/add.tcl packages/acs-subsite/ www/admin/attributes/add.tcl packages/acs-subsite/www/admin/attributes/add.tcl->attribute::datatype_validator_exists_p

Testcases:
acs_subsite_attribute_datatypes
Source code:
        if {$datatype eq "date"} {
            return 0
        }
        if {$datatype eq "enumeration"} {
            return 1
        }
        if { [namespace which ::template::data::validate::$datatype] eq "" } {
            return 0
        }
        return 1
Generic XQL file:
packages/acs-subsite/tcl/attribute-procs.xql

PostgreSQL XQL file:
packages/acs-subsite/tcl/attribute-procs-postgresql.xql

Oracle XQL file:
packages/acs-subsite/tcl/attribute-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: