[prev in list] [next in list] [prev in thread] [next in thread]
List: zope-dev
Subject: Re: [Zope-dev] Namespace trouble
From: Dieter Maurer <dieter () handshake ! de>
Date: 2000-09-29 21:29:44
[Download RAW message or body]
Martin =?ISO-8859-1?Q?Gr=F6nemeyer?= writes:
> if've had little namespace problems with this code-snipped (dtml-method):
>
> <dtml-with REQUEST>
> <dtml-in "[1,2,3,4,5,6,7,8]">
> <dtml-call "REQUEST.set('row_index',_['sequence-index'])">
> <dtml-var "REQUEST.get('row_index')">
> <dtml-var row_index>
> </dtml-in>
> </dtml-with>
>
> 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 - Zope-Dev@zope.org
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 )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic