| 
      
      
      From: joseph s. <joe...@jk...> - 2003-04-20 19:33:21
      
     | 
| hi list,
I checked the OpenInteract-1.58 and the base_page is still v.1.24, and my problem's not solved on the sourceforge site.  I had directory listings before, but now I could only make them work by changing some of base_page's Openinteract/Page.pm stuff.  And, no, this wasn't fixed in the new version, which retains the same base_page package version and 'oi_manage upgrade' refuses to apply it.  In any event, it's not there.
A FIX:
my $no_extension = $location =~/\.\(\w+\)$/;
works but 
the 
'my $no_extension = $location !~/\.\(\w+\)$/;' which comes down doesn't.  
Note that my change allows me to browse files as well as directories, but multiple solutions are possible.
THE PROBLEM
when I tried to get a directory listing of a directory, it would append html to the listing name, and push that onto @locations, but further down the code, it would try dir.html and abort presenting a "not foudn" in the middle of the template in the browser.  
The revision for 1.22 says "Modify the order in which we check for certain objects: if no
extension given, first check a page by that name and THEN the directory index".  However, it should still check all the $locations in the loop foreach my $location ( @locations ) {
but in fact it aborts.  
thanks.
-- 
joseph speigle
www.sirfsup.com
jo...@jk...
page: 377-7377 (210)
 |