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
analysis.
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):
self.menuHeading('Contexts')
adapterName = self.request().adapterName()
ctxs = self.application().contexts().keys()
ctxs = filter(lambda ctx: ctx!='default', ctxs)
ctxs.sort()
for ctx in ctxs:
self.menuItem(ctx, '%s/%s/' % (adapterName, ctx))
How does the context "PSPExamples" get created / loaded? I am lost.
Thanks in advance...
rdg
