Changeset 6690
- Timestamp:
- Feb 14, 2018 1:55:36 PM (6 years ago)
- Location:
- branches/1.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.7/gui/apps/execute.tcl
r5850 r6690 78 78 set installdir [file dirname [file normalize $toolxml]] 79 79 set toolobj [Rappture::library $toolxml] 80 81 # copy structure.current.fields and structure.current.components 82 foreach path [Rappture::entities -as path $driverobj input] { 83 if {[$driverobj element -as type $path.current] eq ""} { 84 $toolobj copy $path from $driverobj $path 85 } 86 } 87 80 88 set TaskObj [Rappture::Task ::#auto $toolobj $installdir] 81 89 set LogFid "" … … 151 159 foreach path [Rappture::entities -as path $driverobj input] { 152 160 if {[$driverobj element -as type $path.current] ne ""} { 153 lappend args $path [$driverobj get $path.current] 161 set currentVal [$driverobj get $path.current] 162 # do not replace empty paths - in particular structures 163 if {$currentVal ne {}} { 164 lappend args $path $currentVal 165 } 154 166 } 155 167 } -
branches/1.7/lang/tcl/scripts/library.tcl
r6308 r6690 161 161 lappend queue $cpath.current.parameters 162 162 } 163 if {[$xmlobj element $cpath.current.fields] != ""} { 164 lappend rlist $cpath.current.fields 165 } 166 if {[$xmlobj element $cpath.current.components] != ""} { 167 lappend rlist $cpath.current.components 168 } 163 169 } 164 170 drawing { … … 185 191 lappend rlist [$xmlobj element -as $params(-as) $cpath] 186 192 } 187 193 } 188 194 default { 189 195 if {[catch {Rappture::objects::get $type}] == 0} { … … 528 534 set string [string trim [$node text]] 529 535 if {$params(-decode)} { 530 536 set string [Rappture::encoding::decode -- $string] 531 537 } 532 538 return $string … … 614 620 if {[Rappture::library isvalid $str]} { 615 621 foreach n [[$str info variable _node -value] childNodes] { 616 617 618 622 if { [$n nodeType] == "COMMENT_NODE" } { 623 continue 624 } 619 625 $node appendXML [$n asXML] 620 626 }
Note: See TracChangeset
for help on using the changeset viewer.