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):
- 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 $resultXQL Not present: Generic, PostgreSQL, Oracle