Re: [Zope-dev] Namespace trouble

2000-09-29 Thread Dieter Maurer

Martin =?ISO-8859-1?Q?Gr=F6nemeyer?= writes:
 > if've had little namespace problems with this code-snipped (dtml-method):
 > 
 > 
 >  
 >   
 >   
 >   
 >  
 > 
 > 
 > This produces an output like this: 0,0,0,0,0,0,... 
When I execute your code (Zope 2.2.2), I get the expected
result.

For me, it seems, that you have a variable named "row_index"
in "REQUEST.environ" with value "0".
According to source documentation (ZPublisher.HTTPRequest),
"environ" has precedence over "other" (where ".set" places
it definition).

Try a different name with a very low change of being already
used: e.g. "row_index" --> "xyz123456".


Dieter

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




[Zope-dev] Namespace trouble

2000-09-28 Thread Martin Grönemeyer

Hello everyone,

if've had little namespace problems with this code-snipped (dtml-method):


 
  
  
  
 


This produces an output like this: 0,0,0,0,0,0,... The zero is the first
index set by REQUEST.set... The running index isn't reflected into the
current namespace. Why not ? It know it depends on , but
it didn't find an answer.

Thanks for any comment,

martin



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