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

Testcases:
No testcase defined.
Source code:
        #
        # If no version or Xinha package are specified, use the
        # namespaced variables as default.
        #
        if {$version eq ""} {
            set version ${::richtext::xinha::version}
        }

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

        if {[file exists $resourceDir/$version]} {
            set prefix  $resourceUrl/$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  urnMap {}

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