PSP is a Kit -- when the AppServer starts up, it searches the
subdirectories of Webware/ for these packages. I'm not sure exactly
what criteria the AppServer uses, but I believe when it finds a
Properties.py file, it inserts the Kit into the AppServer. This means
it gets some information from Properties.py, some from __init__.py, and
also installs an examples context (located in the Example/ directory
under the kit). So PSPExamples is from PSP/Examples, and is added
On Wed, 2002-07-17 at 20:15, rdg wrote:
> In an effort to come up to speed on WebWare & WebKit, I decided to study
> the Example and Admin code sets.
> There is one thing (up to this point) that I have not been able to
> figure out after many hours of searching and
> In the sidebar of the main page of "Example", there are to hyperlinks
> (PSP and PSPExamples). Both reference the context name "PSPExamples".
> However, this context is *not* defined in the Application.config
> contexts section.
> So I following the inheritence back to SidebarPage.py to review the code
> that generated the html in question. See below...
> def writeContextsMenu(self):
> adapterName = self.request().adapterName()
> ctxs = self.application().contexts().keys()
> ctxs = filter(lambda ctx: ctx!='default', ctxs)
> for ctx in ctxs:
> self.menuItem(ctx, '%s/%s/' % (adapterName,
> How does the context "PSPExamples" get created / loaded? I am lost.
> Thanks in advance...