xowiki::formfield::spec_to_dict (private)
xowiki::formfield::spec_to_dict -name name spec
Defined in packages/xowiki/tcl/form-field-procs.tcl
Convert a single spec to a Tcl dict structure
- Switches:
- -name (required)
- Parameters:
- spec (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: dict set result _name $name set elements [split $spec ,] dict set result _type [lindex $elements 0] foreach s [lrange $elements 1 end] { switch -glob -- $s { *=* { set p [string first = $s] set attribute [string range $s 0 $p-1] set value [::xowiki::formfield::FormField fc_decode [string range $s $p+1 end]] dict set result $attribute $value } default { ns_log notice "... spec_to_dict ignores <$s>" } } } return $resultXQL Not present: Generic, PostgreSQL, Oracle