From: Irene B. <ib...@as...> - 2001-03-21 21:41:32
|
Chuck, Because you had mentioned having "multiple Webwares" installed in your response to Tom Schwaller's post "problem with assertion". I didn't mean to confuse. But, back to "multiple Webwares". Since the AsyncThreadedAppServer by default starts up 10 threads, the solution below seems a bit excessive. Maybe I'm confused about the purpose of 'Contexts'. Does 'Contexts' just tell the AppServer where servlets can be found? Let me play with Webware a bit more, maybe I'll find my own solution. BTW, I caught your talk at Python9 and it inspired me to look at Webware as a simpler alternative to Zope:-) Cheers, --irene Chuck Esterbrook wrote: > > Since you already pointed out that you wanted two truly separate apps with > their own Application.config files, I would do this: > > Have a directory for each of your projects that contains a Webware > distribution, docs, web site, etc: > > ProjectX/ > Webware/ > WebKit/ > ... > Docs/ > Web/ > __init__.py > SitePage.py > Main.py > > * In ProjectX/Webware/WebKit/Application.config, set your 'default' context > to point to ProjectX/Web/. > > * Choose different ports for each project. Configured in > WebKit/AppServer.config. > > * Set up different adapters for the two projects. Set their ports. (See > InstallGuide for more info.) > > This also separates the concern of Webware version numbers for your > projects which could be an issue in the future if you ever wanted to > diverge. Like if a Webware 2.0 came out and you had motivation and time to > upgrade one project, but not the other. > > That should cover it, but I could have missed something. If you give it a > try, please let us know how it goes one way or the other and we'll go from > there. > > In version 1.0 I plan on making multiple applications easier to configure. > I'll be posting a WEP on that at some point. > > BTW Why was the title of your message "Strange problem with assertion"? > > -Chuck > > At 01:33 PM 3/21/2001 -0700, Irene Barg wrote: > >Chuck, > > > >I'm new to Webware, and I too placed the Webware directory > >in my PYTHONPATH. Your comment about multiple Webwares > >brings me to a question about the how Webware is intended > >to be used to develop multiple Web sites physically located > >on one server. i.e.: > > > >http://nicmos.as.arizona.edu/Project1 > >http://nicmos.as.arizona.edu/Project2 > >.... > > > >And, I want to make those sites look independant from each other > >and both Projects 1 and 2 should have their own "Application.config" > >with the "Contexts" section listing the > >subdirectories under them (Project1/Registration, etc.). > > > >How do I do this? > > > >Thanks, > >--irene > >Chuck Esterbrook wrote: > > > > > > At 07:16 PM 3/21/2001 +0100, Tom Schwaller wrote: > > > >I have Webware (but not Webware/WebKit) in my PYTHONPATH, > > > >which seems to be ok. > > > > > > > >from WebKit.SidebarPage import SidebarPage > > > > > > > >works in every case then.. > > > > > > Right. Note that you don't need Webware in your PYTHONPATH unless you are > > > using Webware components from other programs. > > > > > > When you launch the app server, it inserts the Webware path into sys.path > > > no matter what. This is important, not only for convenience, but also > > > because some of us have multiple Webwares on our hard drives. WebKit has to > > > make sure it doesn't pick up Webware components from other distributions. > > > > > > > > >-- > >---------------------------------------------------------------- > >Irene Barg Email: ib...@as... > >Steward Observatory Phone: 520-621-2602 > >933 N. Cherry Ave. > >University of Arizona FAX: 520-621-1891 > >Tucson, AZ 85721 http://nickel.as.arizona.edu/~barg > >---------------------------------------------------------------- > > > >_______________________________________________ > >Webware-discuss mailing list > >Web...@li... > >http://lists.sourceforge.net/lists/listinfo/webware-discuss -- ---------------------------------------------------------------- Irene Barg Email: ib...@as... Steward Observatory Phone: 520-621-2602 933 N. Cherry Ave. University of Arizona FAX: 520-621-1891 Tucson, AZ 85721 http://nickel.as.arizona.edu/~barg ---------------------------------------------------------------- |