On April 26, 2002 06:06 pm, Terrel Shumway wrote:
> http://webware.colorstudy.net/twiki/bin/view/Webware/UriMapping is for a
> concrete implementation that can go into Webware RSN that can replace
> the current filesystem-centric mapping strategy.

Tangent 1
-----------

This URI topic is somewhat related to how contexts/packages are loaded into 
WebKit.  The current implementation of ServletFactory relies on the 'imp' 
module and thus can't take any advantage of custom import hooks.  As a 
result, you have to create a new servlet factory for .tmpl files, .psp files, 
etc., in addition to any import hooks you've written.  

The code in ServletFactory.importAsPackage() and 
ServletFactory._importModuleFromDirectory could be refactored to allow it to 
work with import hooks and remove the need for a separate ServletFactory for 
each extension.  It should be possible to use a single ServletFactory for 
.py, .psp, and .tmpl servlets once the refactoring has been done and an 
import hook has been written for .psp files.  

Tangent 2
-----------

The current implementation of psp doesn't allow one psp servlet to seemlessly 
inherit from another psp servlet.  An import hook would make this possible. 
Ditto for .tmpl files.  I've written an import hook for .tmpl files (using 
Gordon McMillan's ui.py rather than ihooks or imputils, which are both badly 
broken).  See ImportManager.py and ImportHooks.py in Cheetah's CVS.  It 
should be fairly simple to extend this to work with PSP as well.  Anyone 
interested?

Tavis






_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to