[Zope] Is Zope syntax inconsistent ?

Michel Pelletier michel@digicool.com
Fri, 10 Mar 2000 12:54:50 -0800


Richard Moon wrote:
> 
> Thanks for solving the immediate problem Phil - another UK Zopista -
> there's a few of you out there ! I think I've had help from all of you in
> turn :-)
> 
> However I think this reveals a basic problem with the syntax which is
> causing me grief and presumably there are others like me out there.
> 
> I would expect an object to behave consistently wherever it was used - so
> if it renders/returns/evaluates to 'zope' inside a dtml-var I would expect
> it equally to render/return/evaluate to 'zope' inside a dtml-if.
> 
> If it doesn't then surely we have an inconsistent syntax. How do we know
> how any object is going to behave inside a dtml tag ?

It is not inconsistent because all things behave consistently within
quotes and consistently without quotes.  You just have to know the rules
of each case.  Granted, it's not pretty, but it's consistent.

-Michel