[Seaside] Help with converting Gardner

Yar Hwee Boon hboon at motionobj.com
Sat Dec 18 04:00:27 CET 2004


On Sat, 18 Dec 2004 02:48:59 +0100, Avi Bryant <avi.bryant at gmail.com>  
wrote:

> On Sat, 18 Dec 2004 02:23:00 +0100, Cees de Groot <cg at cdegroot.com>  
> wrote:
>
>> Is session subclassing necessary? Frowned upon? A no-no? Because I don't
>> just want to patch stuff up, I want to make this a
>> superdupershiningexample of Seaside 2.5 use...

<snip>
> But the one
> thing session subclassing is still fairly necessary for, which Gardner
> uses, is maintaining easily accessible per-session state like the
> current wiki instance.  One suggestion that's been made is to simply
> have a properties dictionary on the base Session class so that rather
> than needing a subclass with ivars, you just use "self session
> propertyAt: #wiki" or some such.  Thoughts on this?

One thing I'm using Session subclassing mainly for is to keep a GOODS  
connection and convenience methods. I have methods like #users, #grade1,  
#grade2, #logoutUser. I'm wondering if other people do this also. Can this  
be done moved somewhere else?

-- 
Regards
HweeBoon
MotionObj


More information about the Seaside mailing list