Morris, Nate wrote:
> 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.
> 

I have seen this sort of thing happen before.

One example is the floating menu option.

Unless the 'EnableFloatingMenu' option is set to null in the assp.cfg 
the menu will be enabled but the option in the web interface will be 
un-checked.

For example:

EnableFloatingMenu:=1 , Floating menu is enabled and checkbox in 
interface is checked.

EnableFloatingMenu:= , Floating menu is disabled and checkbox in 
interface is NOT checked.

EnableFloatingMenu is not present in assp.cfg, Floating menu is enabled 
and checkbox in interface is NOT checked.


It's reproducible every time i try it.

Kevin

-------------------------------------------------------------------------
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