Mailinglist Archive: yast-devel (53 mails)

< Previous Next >
[yast-devel] Type of widget id
  • From: Josef Reidinger <jreidinger@xxxxxxx>
  • Date: Mon, 23 Jan 2017 09:30:56 +0100
  • Message-id: <20170123093056.5d69bd2c@linux-vvcf.privatesite>
Hi developers,
I found one design issue and I am not sure what is correct expected
usage. Problem is with id of widget used in yast. Till now I thought
that it can be any basic type, so string, symbol, number, whatever.
But during friday debugging of issue with ReplacePoint CWM widget I
found that some libraries and calls have limitation

1) CWM expects that id of widget is String, and as ID is used that
string. If not, it will abort with nil id ( as it try to get string
only )

2) call Yast::UI.ReplaceWidget accept only symbol as id of replace
point. Nothing else is accepted.

So I think now you see why CWM ReplacePoint widget have troubles, as Id
cannot be symbol and! String at same time. In the end I solve it with
some workaround, but I would like what is intended usage? Really
unlimited basic types? Or String only or Symbol only? I think it make
sense to fix such annoying expectations. We have control over both
parts, so we can change it. I just do not know all reasons behind, so
if you have idea about these two limitations, if you can write it.

And of course if you have any opinion or idea about this id and its
limitation, I will welcome it.

To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >