Session method in the Object class

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Session method in the Object class

dtrussardi@tiscali.it
Ciao,

        i have some Object subclass for define my application database ( table1  table2  ecc. .... ) and relative management methods.

        Sometime in the relative method i need to access to the request session .

        For now i use the code :
       
                        session := WACurrentRequestContext value session.


        I'm tempted to define the session method in the Object class,

        but i found   session and application method in the WAObject class.


        My question is :

                        i can define my database class how WAObject subclass  ( to inherit session method )

                        or it's better to avoid such definition ?


        Thank for any consideration.

        Dario_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside