it's my understanding that a context is loaded like a standard python package, and like all python packages you need to have an __init__ in them otherwise they won't load correctly.  It's not a webkit implementation it's a python requirement.  Your comment about this being a problem for newbies is well taken however, not considering myself a newbie any longer (although not really at the level of an expert yet) I have been bitten by this many times, creating a new context, but forgetting to add the __init__ file.  What would be nice is that if a context fails to load then the __init__ file be created on the fly and then try to reload the context again, this should not involve much extra code and only mean wrapping the context loading in a try: except: loop.  I may give this a try and post some code if it works
 
Jose



-------- Original Message --------
Subject: [Webware-discuss] Why must a context be a module ?
From: "Lothar Scholz" <[EMAIL PROTECTED]>
Date: Sun, June 29, 2003 3:58 am
To: "webware-discuss" <[EMAIL PROTECTED]>

Hello,

Why do we have the requirement that a context directory must contain a
"__init__.py" file (otherwise the app server is not starting). I find
this a little bit annoying for newbies, without any real reasons.
I guess that the "__init__.py" is empty for most projects. And the
context directory should be in the PYTHON_PATH anyway, so this is also
no argument.

 

Best regards,
Lothar                          mailto:[EMAIL PROTECTED]




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to