ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/ActiveDoc/SimpleURLDoc.pm
(Generate patch)

Comparing COMP/SCRAM/src/ActiveDoc/SimpleURLDoc.pm (file contents):
Revision 1.2 by williamc, Mon Aug 28 07:43:21 2000 UTC vs.
Revision 1.5 by sashby, Wed Feb 2 20:16:45 2005 UTC

# Line 33 | Line 33 | sub new {
33          bless $self, $class;
34          $self->cache(shift);
35          $self->_initdoc("doc",@_);
36        #$self->{switch}=ActiveDoc::SimpleDoc->new(@_);
36          return $self;
37   }
38  
# Line 78 | Line 77 | sub urlget {
77          my $urlstring=shift;
78  
79          ($fullurl,$filename)=$self->{urlhandler}->get($urlstring, @_);
80 +        
81          if ( ( ! defined $filename ) || ( $filename eq "" ) ) {
82            $self->parseerror("Failed to get $fullurl");
83          }
84          return ($fullurl,$filename);
85   }
86  
87 #sub AUTOLOAD {
88 #       my $self=shift;
89 #
90        # dont propogate destroy methods
91 #       return if $AUTOLOAD=~/::DESTROY/;
92
93        # remove this package name
94 #       ($name=$AUTOLOAD)=~s/ActiveDoc::SimpleURLDoc:://;
95
96        # pass the message to SimpleDoc
97 #       $self->{switch}->$name(@_);
98 #}
99
87   # ------------------------ Support Routines ---------------------------
88  
89   # ------------------------ Tag Routines -------------------------------
# Line 108 | Line 95 | sub Base_start {
95  
96          $self->checktag($name, $hashref, "url");
97          my $url=$self->{urlhandler}->setbase($$hashref{'url'});
98 +        # Add store for url of the file currently being parsed. This info can
99 +        # then be extracted in Requirements objects
100 +        $self->{configurl}=$url;
101          push @{$self->{basestack}}, $url->type();
102   }
103  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines