Update of /cvsroot/webware/Webware/MiddleKit
In directory usw-pr-cvs1:/tmp/cvs-serv10573
Modified Files:
__init__.py
Log Message:
fix problem wrt using app.serverSidePath() and MakeAppWorkDir when locating the MK WebBrowser context
Index: __init__.py
===================================================================
RCS file: /cvsroot/webware/Webware/MiddleKit/__init__.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** __init__.py 2001/10/26 21:31:36 1.10
--- __init__.py 2001/10/26 23:22:06 1.11
***************
*** 1,5 ****
# MiddleKit
! __version__ = '0.1'
__all__ = ['Core', 'Design', 'Run']
--- 1,5 ----
# MiddleKit
! __version__ = '0.2'
__all__ = ['Core', 'Design', 'Run']
***************
*** 10,17 ****
app = appServer.application()
mkPathVia__file__ = os.path.join(os.getcwd(), os.path.dirname(__file__))
! mkPathViaApp = app.serverSidePath(os.path.join(os.pardir, 'MiddleKit'))
! assert mkPathVia__file__==mkPathViaApp, '\nmkPathVia__file__=%r\nmkPathViaApp=%r\n' % (
! mkPathVia__file__, mkPathViaApp)
! path = os.path.join(mkPathViaApp, 'WebBrowser')
if os.path.exists(path):
app.addContext('MKBrowser', path)
--- 10,17 ----
app = appServer.application()
mkPathVia__file__ = os.path.join(os.getcwd(), os.path.dirname(__file__))
! #mkPathViaApp = app.serverSidePath(os.path.join(os.pardir, 'MiddleKit'))
! #assert mkPathVia__file__==mkPathViaApp, '\nmkPathVia__file__=%r\nmkPathViaApp=%r\n' % (
! # mkPathVia__file__, mkPathViaApp)
! path = os.path.join(mkPathVia__file__, 'WebBrowser')
if os.path.exists(path):
app.addContext('MKBrowser', path)
|