[Zope-DB] Sending DB data via the SESSION Manager

Dieter Maurer dieter@handshake.de
Mon, 14 Apr 2003 20:59:55 +0200

Braun Brelin wrote at 2003-4-14 13:55 +0100:
 > ...
 > What I want, instead,
 > is in the SESSION object to set a dictionary where each key would be the form ID
 > and the value would be another dictionary containing the database field values. 
 > How do I go about doing this?  I tried doing something like this: 
 > context.REQUEST.SESSION.set(MyFormsDict,{})

Do it precisely, as you describe it:

  Build a dictionary (the same way you do it now), say "d".

  Then use "context.REQUEST.SESSION.set(formId,d)".

"formId" should be the id of your form.