[Zope] Mysterious Zope Run-time Error

Asad Habib ahabib at engin.umich.edu
Fri Sep 24 08:36:44 EDT 2004


No, I am not setting this variable in standard_error_message.

- Asad


On Fri, 24 Sep 2004, Michael Dunstan wrote:

>
> On 24/09/2004, at 1:04 AM, Asad Habib wrote:
>
> > I have a variable called 'currentSessionError' that I have placed in
> > the
> > SESSION attribute of the REQUEST object. I am having a problem making
> > the
> > value of this variable persist when I run Zope with SSL. In particular,
> > the value of this variable does not persist when I access a form(i.e.
> > DTML
> > document) from a second form via a standard hypertext link. The value
> > of
> > this variable clearly exists when the second form is being processed
> > but
> > upon accessing the link, the value of this variable is reset to None. I
> > have ascertained this by using
> > <dtml-var "REQUEST.SESSION.get('currentSessionError')">
> > in both forms.
> >
> > This is the only SESSION variable whose value does not persist when I
> > run
> > Zope with SSL. I have numerous other variables in the SESSION that
> > work as
> > expected. Also, when I run Zope without SSL, the value of this variable
> > persists between the two forms. Has anyone come across a similar
> > problem? Any help would be greatly appreciated. Thanks.
>
> Are you trying to set 'currentSessionError' in an error handler like
> standard_error_message? Problem with doing that is transaction is never
> committed and so you wont see changes in further transactions. The
> interpretation of "never committed" depends on just which version of
> Zope your using.
>
> michael
>
>
>
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>


More information about the Zope mailing list