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 5590 May 8, 2003, 9:15 AM
Thread Re: [webmaster33] GT::Session::File problems
Paul 5442 May 8, 2003, 12:11 PM
Thread Re: [Paul] GT::Session::File problems
webmaster33 5441 May 8, 2003, 1:27 PM
Thread Re: [webmaster33] GT::Session::File problems
Paul 5500 May 8, 2003, 1:54 PM
Thread Re: [Paul] GT::Session::File problems
webmaster33 5435 May 8, 2003, 2:49 PM
Thread Re: [webmaster33] GT::Session::File problems
Paul 5425 May 8, 2003, 2:52 PM
Thread Re: [Paul] GT::Session::File problems
webmaster33 5492 May 8, 2003, 2:56 PM
Post Re: [webmaster33] GT::Session::File problems
Paul 5475 May 8, 2003, 3:17 PM
Post Re: [webmaster33] GT::Session::File problems
webmaster33 5438 May 8, 2003, 3:11 PM
Post Re: [webmaster33] GT::Session::File problems
webmaster33 5452 May 8, 2003, 3:20 PM
Post Post deleted by webmaster33
webmaster33 5429 May 9, 2003, 11:13 AM
Thread Re: [webmaster33] GT::Session::File problems
webmaster33 5414 May 18, 2003, 9:35 AM
Thread Re: [webmaster33] GT::Session::File problems
Paul 5434 May 18, 2003, 10:24 AM
Thread Re: [Paul] GT::Session::File problems
webmaster33 5437 May 18, 2003, 11:18 AM
Thread Re: [webmaster33] GT::Session::File problems
Paul 5368 May 18, 2003, 11:37 AM
Post Re: [Paul] GT::Session::File problems
webmaster33 5406 May 18, 2003, 11:45 AM