[Zope-dev] RE: [Zope] Re: Two newbie questions + Zope patch

Michel Pelletier michel@digicool.com
Thu, 9 Sep 1999 11:21:58 -0400


> -----Original Message-----
> From: Evan Simpson [mailto:evan@tokenexchange.com]
> Sent: Thursday, September 09, 1999 9:39 AM
> To: Michel Pelletier; Martijn Pieters
> Cc: zope-dev@zope.org; zope@zope.org
> 
> <dtml-var number/3/the_larch>

Ok.

> <dtml-with thingy><dtml-var "_[varwithstringpath]"></dtml-with>

That's cool.

> <dtml-var "_.getattr(eric(), 'half/a/bee')">

Ouch!

I can see changing var to work with relative paths, but not getattr.
You can try and convince me otherwise but I think _.getattr should work
as much like the python getattr as possible (after all, it *is* the
python getattr!).

-Michel