If you're using python you can do one of two things:
You can check the length of the incoming string by calling len()
> if len(incoming_string) > 140:
# do some stuff
Or, if you don't care about truncation, you can always just splice the
incoming string and not worry about it.
> spliced = incoming_string[:140]
- ryan.
On Wed, Oct 21, 2009 at 2:30 AM, Junal <[email protected]> wrote:
>
> I would like to check the chars limit (i.e not more than 140 chars)
> before i save the data. I'm using GAE default framework...i searched
> for this issue but didn't find any helpful solution. Could anybody
> help or give some example?
>
> Thanks in advance
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---