Re: A bug in editing attributes on links.

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Fri, 10 Nov 1995 16:08:17 +0100

Hi!

"John P. Rouillard" <rouilj@dstar.iddis.com> said:

John> When I edit attributes on links I get:

John> unknown option "address":

[... trace deleted ...]

John> To replicate, start a fresh tkined 1.3.4 with scotty-2.0.2. Create two
John> nodes and link them. Create attributes for the link of:

John> speed 1024kb
John> type ip

John> then select edit select set values. The trace will occur.

Please try the following patch.

Juergen

*** /tmp/tkined-1.3.4/Tool.tcl Wed Sep 6 21:28:16 1995
--- Tool.tcl Fri Nov 10 15:57:52 1995
***************
*** 164,172 ****
set i 1
foreach att $list {
set att [lindex $att 0]
! if {$i == 1} {
$id name [lindex $result $i]
! } elseif {$i == 2 && [$id type] != "GROUP"} {
$id address [lindex $result $i]
} else {
$id attribute $att [lindex $result $i]
--- 164,172 ----
set i 1
foreach att $list {
set att [lindex $att 0]
! if {$i == 1 && $att == "name"} {
$id name [lindex $result $i]
! } elseif {$i == 2 && $att == "address" && [$id type] != "GROUP"} {
$id address [lindex $result $i]
} else {
$id attribute $att [lindex $result $i]