#65 No cascading extensions for directory files

closed-fixed
nobody
WebKit (45)
5
2006-07-08
2004-02-06
No

Here is a suggestion for improvement of the function
findDirectoryIndex in the Application.py module.

The problem is that this function ignores cascading
extensions.

For instance, if you have a configuration like this one:
'DirectoryFile': ['index','main'],
'UseCascadingExtensions': 1,
'ExtensionCascadeOrder':['.py','.html'],

Webware 0.8.1 will output an error if you have an
index.html and an index.py file.

I assume this has simply been forgotten when
cascading extensions were introduced and I have added
the functionality in the findDirectoryIndex function (see
attachment).

Of course, DirectoryFile has precedence over
ExtensionCascadeOrder. So in the above
case, 'index.html' would be prefered over 'main.py'.

Discussion

  • Christoph Zwerschke

    patch for Application.py module

     
    Attachments
  • Christoph Zwerschke

    • status: open --> closed-fixed
     
  • Christoph Zwerschke

    Logged In: YES
    user_id=193957

    This is now in the SVN trunk and will go into Webware 0.9.2
    (in the current version, URLParser.py had to be patched
    instead of Application.py).

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks