Erik Forsberg <[EMAIL PROTECTED]> writes:
> I have a strange import problem. My directory structure is as follows:
>
> /s/LysConf/
> Lib/__init__.py
> <various other files, SitePage.py et. al>
> MainContext/
> <Main.py et. al, for the main context.>
> GenLib/
> <Cheetah-generated *.py-files>
> LysCVSConfig/
> __init__.py
> Lib/
> LysCVSPage.py
> GenLib/
> __init__.py
> <Other Cheetah-Generated *.py-modules>
> Context/
> <Main.py et. al, for this context>.
>
> (/s/LysConf is a Webware working directory)
>
> My contexts setup in Applications.config is:
>
> 'Contexts': {'default': 'MainContext',
> 'LysCVSConfig':
> 'LysCVSConfig/Context'},
Problem solved. By some reason, the context name matters. If I change
the context definition above to:
'Contexts': {'default': 'MainContext',
'LysCVS': 'LysCVSConfig/Context'},
..it works.
There is something in the import code that gets confused when the
module I'm trying to import from has the same name as the context. Oh
well..
\EF
--
Erik Forsberg http://www.lysator.liu.se/~forsberg/
GPG/PGP Key: 1024D/0BAC89D9
-------------------------------------------------------
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/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss