Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Paul] GT::Session::File problems

Quote Reply
Re: [Paul] GT::Session::File problems In reply to
Quote:
I think maybe you misunderstood the point I was making. $DIRECTORY is a global used within GT::Session::File and is not part of the object that GT::Session::File creates, therefore it will not show in a dump of the object.
Yes, I know, it is global in that package: $GT::Session::File::DIRECTORY. Of course.

Quote:
will not show in a dump of the object.
That depends only on intention of developers... Wink

Here is the bugfix:
in new() method instead of following code:
Code:
# We got passed some options, possibly a session id.
if (@_ > 1) {
my $opts = $self->common_param(@_);
foreach (keys %$opts) {
exists $self->{$_} and ($self->{$_} = $opts->{$_});
}
if ($self->{directory}) {
$DIRECTORY = $self->{directory};
}
}

the following is used:
Code:
# We got passed some options, possibly a session id.
if (@_ > 1) {
my $opts = $self->common_param(@_);
foreach (keys %$opts) {
exists $self->{$_} and ($self->{$_} = $opts->{$_});
}
if ($self->{directory}) {
$DIRECTORY = $self->{directory};
}
}
$self->{directory} = $DIRECTORY unless $self->{directory};
The *bugfix* would be so simple...
Tried & works. Cool

Bug nr.4. corrected.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Subject Author Views Date
Thread GT::Session::File problems webmaster33 4170 May 8, 2003, 9:15 AM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4037 May 8, 2003, 12:11 PM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4040 May 8, 2003, 1:27 PM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4099 May 8, 2003, 1:54 PM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4031 May 8, 2003, 2:49 PM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4024 May 8, 2003, 2:52 PM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4091 May 8, 2003, 2:56 PM
Post Re: [webmaster33] GT::Session::File problems
Paul 4077 May 8, 2003, 3:17 PM
Post Re: [webmaster33] GT::Session::File problems
webmaster33 4038 May 8, 2003, 3:11 PM
Post Re: [webmaster33] GT::Session::File problems
webmaster33 4052 May 8, 2003, 3:20 PM
Post Post deleted by webmaster33
webmaster33 4032 May 9, 2003, 11:13 AM
Thread Re: [webmaster33] GT::Session::File problems
webmaster33 4008 May 18, 2003, 9:35 AM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4032 May 18, 2003, 10:24 AM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4038 May 18, 2003, 11:18 AM
Thread Re: [webmaster33] GT::Session::File problems
Paul 3968 May 18, 2003, 11:37 AM
Post Re: [Paul] GT::Session::File problems
webmaster33 4007 May 18, 2003, 11:45 AM