richtext::xinha::resource_info (public)

 richtext::xinha::resource_info [ -version version ]

Defined in packages/richtext-xinha/tcl/richtext-procs.tcl

Get information about available version(s) of Xinha, either from the local filesystem, or from CDN.

Switches:
-version (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 richtext::xinha::add_editor richtext::xinha::add_editor (public) richtext::xinha::resource_info richtext::xinha::resource_info richtext::xinha::add_editor->richtext::xinha::resource_info richtext::xinha::download richtext::xinha::download (private) richtext::xinha::download->richtext::xinha::resource_info acs_package_root_dir acs_package_root_dir (public) richtext::xinha::resource_info->acs_package_root_dir parameter::get_global_value parameter::get_global_value (public) richtext::xinha::resource_info->parameter::get_global_value

Testcases:
No testcase defined.
Source code:
        variable parameter_info

        #
        # If no version or Xinha package are specified, use the
        # configured version.
        #
        if {$version eq ""} {
            dict with parameter_info {
                set version [::parameter::get_global_value  -package_key $package_key  -parameter $parameter_name  -default $default_value]
            }
        }

        #
        # Setup variables for access via CDN vs. local resources.
        #
        set resourceDir [acs_package_root_dir richtext-xinha/www/resources]
        set cdn //s3-us-west-1.amazonaws.com/xinha

        if {[file exists $resourceDir/$version]} {
            set prefix  /resources/richtext-xinha/$version/xinha
            set cdnHost ""
        } else {
            set prefix $cdn/xinha-$version
            set cdnHost s3-us-west-1.amazonaws.com
        }

        #
        # Return the dict with at least the required fields
        #
        lappend result  resourceName "Xinha $version"  resourceDir $resourceDir  cdn $cdn  cdnHost $cdnHost  prefix $prefix  cssFiles {}  jsFiles  {}  extraFiles {}  downloadURLs https://s3-us-west-1.amazonaws.com/xinha/releases/xinha-$version.zip  cspMap {}  urnMap {}  parameterInfo $parameter_info  configuredVersion $version

        return $result
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: