From: Lothar S. <ll...@we...> - 2003-05-19 20:46:31
|
Hello, i have asked this also in the python newsgroup (with another example code), but i found the same code in webware (only in one file - WebKit\Adapter\ModPythonAdapter.py): OriginalModPythonAdapter = ModPythonAdapter class WinModPythonAdapter(OriginalModPythonAdapter): def __init__(self, host, port, webkitdir): ..... Why isn't this simply: class WinModPythonAdapter(ModPythonAdapter): I'm asking this because i write a python source code browser that does a static analysis of the code. And it can't handle this style. So is there any reason to not change the code to the normal style. I'm using the source code from the webware-0.8 release. Best regards, Lothar mailto:ll...@we... |
From: Frank B. <fb...@fo...> - 2003-05-19 21:10:56
|
Hallo, Lothar Scholz hat gesagt: // Lothar Scholz wrote: > i have asked this also in the python newsgroup (with another > example code), but i found the same code in webware (only in one > file - WebKit\Adapter\ModPythonAdapter.py): > > OriginalModPythonAdapter = ModPythonAdapter > class WinModPythonAdapter(OriginalModPythonAdapter): > def __init__(self, host, port, webkitdir): > ..... > > Why isn't this simply: > > class WinModPythonAdapter(ModPythonAdapter): Later ModPythonAdapter is replaced: ... # Replace ModPythonAdapter with the Windows-safe version. ModPythonAdapter = WinModPythonAdapter So if you want to reference the original (as is done inside the new WinModPythonAdapter) you need to make a backup first. In the end, the new ModPythonAdapter inherits of the original one. ciao -- Frank Barknecht _ ______footils.org__ |