[e-smith-devinfo] Problem with creating a panel

2003-12-15 Thread Thor Anthrax
I was trying to store a value from a web panel

my $conf = esmith::ConfigDB-open();
tie my %conf, 'esmith::config', $conf-file;
my $req = $conf-get('privoxy');
$rec-set_prop('status', 'enabled');

When I uncomment the last line I get no error, otherwise I do. What am I
doing wrong here?

my $status = $conf-get('privoxy')-prop('status');
gives me the information that is in the database, so I have opened the file.



Thor


--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Searchable archive at http://www.mail-archive.com/devinfo%40lists.e-smith.org



Re: [e-smith-devinfo] Problem with creating a panel

2003-12-15 Thread Charlie Brady

On Tue, 16 Dec 2003, Thor Anthrax wrote:

 I was trying to store a value from a web panel
 

After you do this:

 my $conf = esmith::ConfigDB-open();

you don't need to do this:

 tie my %conf, 'esmith::config', $conf-file;

The esmith::ConfigDB module obsoletes the tie interface of 
esmith::config.

 my $req = $conf-get('privoxy');
 $rec-set_prop('status', 'enabled');
 
 When I uncomment the last line I get no error, otherwise I do. What am I
 doing wrong here?

req and rec are not the same.

Are you not using use strict; in your script? The perl compiler usually
picks up errors like this.

--
Charlie Brady [EMAIL PROTECTED]
Mitel Networks Corporation  http://www.mitel.com/
Phone: +1 (613) 592 5660 or 592 2122  Fax: +1 (613) 592 1175

A: Because we read from top to bottom, left to right.
Q: Why should i start my reply below the quoted text?


--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Searchable archive at http://www.mail-archive.com/devinfo%40lists.e-smith.org