I tried this on

ASSP 1.3.2(15)
Windows Server 2003 SP1
ActiveState Perl 5.8.8

And

ASSP 1.3.2(15)
FreeBSD 6.2
Perl 5.8.8

PROBLEM:
When viewing the ASSP Configuration through the GUI, if the assp.cfg file
does not have an entry for a setting, the default (active setting) is not
displayed.

I used an abbreviated assp.cfg file with just a few key lines in it to test.
I put the following line in the textinput, passinput, and checkbox sub
routines, then browsed to the configuration screen:

mlog(0,"\$Config{$name} ".((exists $Config{$name}) ? 'exists.' : 'does not
exist.'));

The log shows that each hash key with the setting does not exist:

Apr-25-07 10:48:16 $Config{listenPort} does not exist.
Apr-25-07 10:48:16 $Config{smtpDestination} does not exist.
Apr-25-07 10:48:16 $Config{smtpDestinationRT} does not exist.
Apr-25-07 10:48:16 $Config{listenPort2} does not exist.
Apr-25-07 10:48:16 $Config{smtpAuthServer} does not exist.
...

$Config{$name} is used in these subroutines to populate the values of the
HTML fields as they are rendered. I have tried to figure this out, but I'm
stuck. I thought it had something to do with scoping, but it looks like that
may not be the case. It may be that I'm just not familiar enough with the
syntax. Can someone point me in the right direction? If I'm revealing my
ignorance, I apologize.

Note, if the setting is contained in the assp.cfg file, it is rendered
properly. Also, if you set the value, then unset it, assp puts the entry in
the assp.cfg file and from then on, it appears to work fine.

Nate

"I am returning this otherwise good typing paper to you because someone has
printed gibberish all over it and put your name at the top." - An English
Professor

http://www.quotationspage.com/qotd.html

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Assp-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-user

Reply via email to