Re: [Zope] REQUEST.set doesn't set in 2.2.4

2000-12-07 Thread Dieter Maurer

Brad Clements writes:
 > This code:
 > 
 > "REQUEST.set('verrormessage',orderobject.chargeCard(REQUEST,Holmes.CyberCash,Rec))">
 > 
 > 
 > Prints out _.None as the result.
 > 
 > However a print statement in my ordeobject.chargeCard method shows 
 > that the return value isn't None.
Are you sure that you do not have a "verrormessage" variable or
object attribute/property around?

   The definitions in REQUEST have quite a low priority.
   They are usually at the bottom of the namespace stack
   and there at the bottom of the acquisition context.

   This implies:

 If you have any variable on the namespace stack,
 it will hide a REQUEST value bound to the same name.
 Same is true, for acquired names.

You may use 
or:


  &dtml-verrormessage;



Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] REQUEST.set doesn't set in 2.2.4

2000-12-06 Thread Bill Anderson

Brad Clements wrote:
> 
> This code:
> 
> "REQUEST.set('verrormessage',orderobject.chargeCard(REQUEST,Holmes.CyberCash,Rec))">
> 
> 
> Prints out _.None as the result.
> 
> However a print statement in my ordeobject.chargeCard method shows
> that the return value isn't None.
> 
> This seems broken. The return code is coming from within an exception
> handler, I wonder if that is related to the problem.
> 
> I've also noticed that in a  calling
> REQUEST.set within the except doesn't set it.
> 
> Anyone got ideas?

Just for thoroughness (or something) try this to eliminate something:






This should determine whether what you want to set is working first.
If PRE and POSt are the same, the problem s defintiely in your method
call.  

dtml-call REQUEST.set is working fine on 2.2.4 from here.


Bill


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] REQUEST.set doesn't set in 2.2.4

2000-12-06 Thread Brad Clements



This code:




Prints out _.None as the result.

However a print statement in my ordeobject.chargeCard method shows 
that the return value isn't None.

This seems broken. The return code is coming from within an exception 
handler, I wonder if that is related to the problem.

I've also noticed that in a  calling 
REQUEST.set within the except doesn't set it.

Anyone got ideas? 

Brad Clements,[EMAIL PROTECTED]   (315)268-1000
http://www.murkworks.com  (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com   AOL-IM: BKClements

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )