[Zope] Re: CASE in point -- [Zope] Simple dtml-unless problem

Oleg Broytmann phd@mail2.phd.pp.ru
Thu, 14 Sep 2000 08:22:41 +0000 (GMT)


On Thu, 14 Sep 2000, Tim Hicks wrote:
> Thanks Albert and Oleg. If I'm honest, while I have become somewhat
> familiar with what Albert describes as zope's 'multiple personality
> disorder', I can't say I truly understand it. I still don't think I've
> got my head around the _['whatever'] syntax. From what Oleg says, if
> there is a method there, it will be called, otherwise it reverts to a
> string! Wow, that sounds like an awkward way to go about things. If I
> have that point right, how would I force zope to treat it as a string
> using the _[ syntax?

   I think you cannot. Probbaly the best you can try is

   _.getitem("thing", 0)
                      ^ do not render the object

Oleg.
---- 
     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.