At 04:35 AM 10/27/01 -0700, Chuck Esterbrook wrote:
>At 10:39 AM 10/27/2001 +0200, Georg Balmer wrote:
>>I have 2 basic questions
>>
>>--[1]--------------------------------------------
>>
>>How do you layout the directory structure ?
>[snip]
>>or case B:
>>
>>someDirectory/
>>     Webware/
>>         WebKit/
>>         ...
>>
>>someOtherDirectory/
>>     appOne/
>>         pages/
>>         lib/
>
>Case B. Mingling your projects with Webware is a bad idea. It makes it 
>harder to upgrade Webware and confuses people into thinking they have to 
>modify Webware to make Webware apps.

I agree.  And I recommend using the MakeAppWorkDir.py script that can be 
found in the Webware/bin directory to create a separate working directory, 
complete with its own config files, etc.  That way, you don't have to 
modify the Webware directory at all.

Then you can add your own library directories into the directory that you 
created with MakeAppWorkDir.py.  So my directory structure looks like this:

/Webware
     /WebKit
     ...

/MyWebSite
     /Cache
     /Configs
     /Contexts - I added this directory
         /SomeContext
         /SomeOtherContext
     /ErrorMsgs
     /Lib - I added this directory
     /Logs
     /Sessions
     /Static - I added this directory for static content to be served 
directly by Apache
     AppServer.bat
     Launch.py
     ...

 From my servlets I can import Python modules out of Lib using for example:

from Lib.SitePage import SitePage


--

- Geoff Talvola
   [EMAIL PROTECTED]

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to