[Zope] Tiny tables

andres@corrada.com andres@corrada.com
Fri, 13 Oct 2000 19:40:08 -0400


The problem with the TinyTable and TinyTablePlus products is that they use
the tokenize.py module which treats any field value as a possible Python expression.
Since ":" is a special token in Python, it gets interpreted as such. One
quick way to get around this is to quote your field value -

"criteria:tokens"

You may have to deal with the quotes later on, although I think they get
stripped after the value survives the tokenize.py module.

On Fri, Oct 13, 2000 at 08:08:34AM +1300, Graham Chiu wrote:
> 
> I would like to run some regular reports based upon
> sqlmethods.  The input to these are a mixture of normal
> values, and some tokenised values.
> 
> I tried storing these in tiny tables, but it doesn't seem
> that tiny tables allow one to store tokens.  If I specify
> the value as say, criteria:tokens, it gets changed to just
> criteria.
> 
> Any suggestions as to how to store the input as tokens for
> my reports?
> 
> --
> Graham Chiu
> 
> _______________________________________________
> 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 )
> 
> 

-- 
------------------------------------------------------
Andres Corrada-Emmanuel   Email: andres@corrada.com
------------------------------------------------------