[albatross-users] Re: Renaming application and execution context classes

Cameron Blackwood korg at darkqueen.org
Mon Jun 30 17:17:54 EST 2003


"Cameron Blackwood" writes:
  | 
  | But wouldnt you be better to make the programmer hard code enough
  | information into the code so that the context type can be created and then
  | you would have 3 app classes rather than 9.
  | 
[....]
  | 
  | This post has made me look through the albatross documentation again
  | and I have a couple of comments on that:
  | 

http://www.object-craft.com.au/projects/albatross/albatross/app-popview3.html
"Adding Server-Side Session Support to Popview"

"The new application prologue looks like this:

#!/usr/bin/python
from albatross import SimpleSessionApp, SessionAppContext
"

and then:

"    def create_context(self):
        return AppContext(self)"

but that should be:

"    def create_context(self):
        return SessionAppContext(self)"

cam

--
 / `Rev Dr'   cam  at darkqueen.org            Roleplaying, virtual goth \
<   http://darkqueen.org        Poly, *nix, Python, C/C++, genetics, ATM  >
 \  [+61 3] 9809 1523[h]         skeptic, Evil GM(tm). Sysadmin for hire /
                      ---------- Random Quote ----------
Where it is a duty to worship the sun it is pretty sure to be a crime to
examine the laws of heat.
		-- Christopher Morley



More information about the Albatross-users mailing list