Hi!

I have a similar problem like Erik before ( [Webware-discuss] Storing LDAP
connections in Sessions?).

Instead of LDAP connection I have an object of class "TradingSystem". This
class includes several other objects like indicators, prices and settings.
Also all the calculations are done here. The user can load and save settings to
the database using MiddleKit. 

My problem is that I don' know where to put an object like this. I tryed to
add it as a session value: System crashed. It seems only values like string
or numbers can be stored here. I also tried to put it in the __init__ of the
transaction but I could not figure out how to prevent it from being
overwritten by the awake statement all the time.

I could store all important information like memberId, settingId and
recreate the TradingSystem for every new page based on this sessison variables but
that doesn't seem to be a good idea from performance point of view.

Erik gave me an idea with pickling. Isn't that like dumping and recreating
an object to a file / session? Could that be a solution? Also an independend
TradingSystem pool would be nice. Has anyone done something like that before?

Thanks in advance,
Matthias



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to