[Zope] Question about <dtml-let ...>

Kevin Carlson khcarlso@bellsouth.net
Wed, 8 May 2002 17:18:07 -0400


Hi George,

I don't think that the <!--#let TD_WIDTH="400"--> line will work at all
since it will be interpreted as a comment.  And yes, you can put the
</dtml-let> right below the <dtml-let>.  The key is to put the code that
needs to reference TD_WIDTH between those two tags.

Kevin

-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
George M. Ellenburg
Sent: Wednesday, May 08, 2002 5:04 PM
To: Kevin Carlson; zope@zope.org
Subject: Re: [Zope] Question about <dtml-let ...>


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 08 May 2002 04:54 pm, Kevin Carlson wrote:
> George,
>
> The line should read <dtml-let TD_WIDTH="400">.  But I see another problem
> and that is that the </dtml-let> tag is right after the <dtml-let> tag.
> <dtml-let> alters the namespace by pushing the named expressions on the
> namespace stack.  </dtml-let> pops them off the namespace stack.  Since
you
> are doing both of these together, the namespace will not contain TD_WIDTH
> when you need to use it.
>
> Kevin

Gotcha.  So I take it there's no variable typing?  "400" is both a string
and
an integer?

Hmmm... would <!--#let TD_WIDTH="400"--> work better, or can I just put the
</dtml-let> on the line right below it?

Thanks for the advice!
- --
George M. Ellenburg <george@ellenburg.org>
<http://www.ellenburg.org/>
3 Years and counting of being 100% Microsoft-free; and much more productive.
Proud user of ASK <http://www.paganini.net/ask/>, the Active Spam Killer!
- ---
Any philosophy that can be put in a nutshell belongs there.
		-- Sydney J. Harris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE82ZK6FItzMEWZZdgRAhKwAJ9XudARfkYdz0/hlrUVAtis5D1YZACdEY55
0BXY3LuGDvJjRVCiW7a4Ca0=
=OPYN
-----END PGP SIGNATURE-----



_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )