[Zope] Re: namespaces

Kent Polk kent@goathill.org
14 May 1999 16:17:56 GMT


On 14 May 1999 05:15:00 -0500, Hannu Krosing wrote:
>Kent Polk wrote:
>> 
>> >4:   <!--#in columns-->
>> >5:     <!--#var "_[colname]"-->
>> >6:     <!--#var "_['count-'+colname]"-->
>
>maybe you mean "_['count-' + _['colname']]"

  "_['count-'+colname]"
  "_['count-'+_['colname']]"
and
  "_.getitem('count-'+colname)"

all return the same thing - a string.  It's the correct name and
key, but 'self.items' is the wrong self.items:

DT_InSV.py:
def statistics(self,name,key):
    items=self.items

I'm pretty baffled as to how to build a key and not have DTML treat
it as a string, which, I'm pretty sure, is the problem.

Kent