greetings nathan!

so, if you were wondering whether you were getting mixed messages from
nick and tim... *both* of them are "right." you cannot perform a query
on a TextProperty because they are not searchable (as per tim), but if
you've already retrieved your object out of the datastore, as nick has
said, it's like a normal string so in Python, you could just use the
'in' operator or the normal string methods.

hope this makes their answers less confusing!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
   http://corepython.com

wesley.j.chun, developer relations, google app engine


On Thu, Dec 17, 2009 at 2:15 AM, Manny Nathan <[email protected]> wrote:
> Hi,
> I am trying to use text objects insteadĀ of string to store data (since we
> can only store 500 characters in a string). Is there a way to find if the
> text object contains a substring? I was using String.contains("findstring")
> to find search strings within the string data. I do not see an equivalent
> method for the Text object. Any suggestions as to how I should implement
> this in code?
> Thanks,
> Nathan

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.


Reply via email to