Hi,

I'm trying to redefine application's exceptionHandlerClass in the contextInitialize function of my context's __init__.py, but it looks like in the application's __init__ function is defined after running contextInitialize function in URLParser call.
I have modified applicationīs __init__ function to run exceptionHandlerClass definition before URLParser is called and it worked well.
Is that a bug?
Is there any other way to redefine exceptionHandlerClass?
What am I doing wrong?
-------------------------------------------------------------------
#Context's __init__.py
def contextInitialize(app, ctxPath):
app._exceptionHandlerClass = NewExceptionHandlerClass
-----------------------------------------------------------------
#CVS's Application.py --- __init__
...
URLParser.initApp(self)
self._rootURLParser = URLParser.ContextParser(self)


self.running = 1

self.startSessionSweeper()

       self._exceptionHandlerClass = ExceptionHandler
--------------------------------------------------------------
#Modification's Application.py --- __init__
       self._exceptionHandlerClass = ExceptionHandler

       URLParser.initApp(self)
       self._rootURLParser = URLParser.ContextParser(self)

self.running = 1

       self.startSessionSweeper()
---------------------------------------------------------------





-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to