Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Using dialog for the net-conf spell

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Eric Sandall <eric AT sandall.us>
  • To: SM Discuss <sm-discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] Using dialog for the net-conf spell
  • Date: Wed, 12 Apr 2006 14:06:31 -0700 (PDT)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 12 Apr 2006, Andra?? "ruskie" Levstik wrote:
Karsten Behrmann wrote :
<snip>
On Tue, 11 Apr 2006 21:29:55 -0500, Matthew Clark wrote:
I recently began trying to improve the net-tools spell by replacing that
long list of questions with a dialog.
[...]
Since I am limited in my ability to script it well, I am asking a fellow
developer (or anyone who can bash-script lika muthaphukka) to take a look.

I'm taking a look ;-)
looks pretty good, maybe a few "you should not do that"-s,
but generally some good ideas there.

Hmmm this is just my humble opinion but I'm not a fan of dialog in spells.
It's to me annoying.

I would prefer to have:
config_query NETTOOLS_CONFIG "Do you want to reconfigure" y
if [[ $NETTOOLS_CONFIG == y ]]
then
config_query NETTOOLS_CONFIG_GUI "Use dialog configuration question?" n
if [[ $NETTOOLS_CONFIG_GUI == y ]]
then
do the dialog magic
fi
else
give me the normal questions
fi

Just my suggestion... I'd like this seen in all spells that use dialog.

I believe the current convention is to use config_queries for most
questions, but if there are many (undefined, some would say >5, others
20) questions then use a dialog.

- -sandalle

- --
Eric Sandall | Source Mage GNU/Linux Developer
eric AT sandall.us | http://www.sourcemage.org/
http://eric.sandall.us/ | SysAdmin @ Inst. Shock Physics @ WSU
http://counter.li.org/ #196285 | http://www.shock.wsu.edu/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEPWvZHXt9dKjv3WERAj3wAJ43NdZoHlCdcsmNNSZvPRM9RH4FkACgryu4
ImTG915b9uMM9U0+CCJOE08=
=3npC
-----END PGP SIGNATURE-----




Archive powered by MHonArc 2.6.24.

Top of Page