[Zope] TinyTable Querying Question
abg@comco-inc.com
abg@comco-inc.com
Fri, 12 Oct 2001 15:01:14 -0500
Thanks! Worked like a charm.
In addition to not converting the variable I was looking for to
an integer, I didn't have the TinyTable column defined as :int,
so I was doubly screwed.
Whoops.
Thanks again.
-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
Meilicke, Scott
Sent: Friday, October 12, 2001 2:26 PM
To: Aaron Gillette; zope@zope.org
Subject: RE: [Zope] TinyTable Querying Question
Is it treating your variable as a string vs. a number? If so,
you can use
<dtml-var expr="_.string.atoi(myVariable)">
to convert from a string to a number.
Scott
-----Original Message-----
From: abg@comco-inc.com [mailto:abg@comco-inc.com]
Sent: Friday, October 12, 2001 12:23 PM
To: zope@zope.org
Subject: [Zope] TinyTable Querying Question
Hi,
I am quite sure that I'm missing something obvious, but I'm absolutely
pulling my hair out. I am trying to pull data out of a
TinyTable based on a
variable.
Here's an example:
<dtml-in "TinyTable(row_id= myVariable)">
<dtml-var col_1>
</dtml-in>
If I replace myVariable with a literal, like '1', it works
(naturally). What
am I overlooking?
Thanks in advance,
Aaron Gillette
_______________________________________________
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 )
_______________________________________________
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 )