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 4259 May 8, 2003, 9:15 AM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4126 May 8, 2003, 12:11 PM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4128 May 8, 2003, 1:27 PM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4188 May 8, 2003, 1:54 PM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4120 May 8, 2003, 2:49 PM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4113 May 8, 2003, 2:52 PM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4180 May 8, 2003, 2:56 PM
Post Re: [webmaster33] GT::Session::File problems
Paul 4166 May 8, 2003, 3:17 PM
Post Re: [webmaster33] GT::Session::File problems
webmaster33 4128 May 8, 2003, 3:11 PM
Post Re: [webmaster33] GT::Session::File problems
webmaster33 4141 May 8, 2003, 3:20 PM
Post Post deleted by webmaster33
webmaster33 4121 May 9, 2003, 11:13 AM
Thread Re: [webmaster33] GT::Session::File problems
webmaster33 4098 May 18, 2003, 9:35 AM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4122 May 18, 2003, 10:24 AM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4126 May 18, 2003, 11:18 AM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4057 May 18, 2003, 11:37 AM
Post Re: [Paul] GT::Session::File problems
webmaster33 4097 May 18, 2003, 11:45 AM