Thanks, stupid error.

I did have it the other way, the problem happened when I added the
"vote link" line.

What you get for swapping between many languages everyday.

Peter


On Feb 27, 5:59 am, Wooble <[email protected]> wrote:
> This isn't an appengine problem.  Python strings are immutable;
> str.replace() doesn't modify the original string, it returns a
> modified string.
>
> On Feb 25, 6:10 pm, "Petert[at]ipowow" <[email protected]> wrote:
>
>
>
> > I'm having a problem with replace string which has just started
> > happening recently. The code was working with no problems before.
>
> > Can someone have a look and see if I'm doing something wrong
>
> > Code - starting at line 395
> > -----------------
> > msgt = self.request.get('txt')
> > logging.info(msgt)
> > logging.info("PIN"+smscode)
> > msgt.replace("##Access Code##", smscode)
> > msgt.replace("##Vote Link##", votekey)
> > msg = "Your pin code is [" + smscode + "]\n\n" + msgt
> > logging.info(msgt)
> > logging.info(msg)
>
> > Log Entries
> > ---------------------------
> > IINFO     2010-02-25 23:05:30,218 vote.py:396] Pin ##Access Code##
> > INFO     2010-02-25 23:05:30,218 vote.py:397] PIN35356
> > INFO     2010-02-25 23:05:30,218 vote.py:401] Pin ##Access Code##
> > INFO     2010-02-25 23:05:30,218 vote.py:402] Your pin code is [35356]
>
> > Pin ##Access Code##
>
> > As it can be seen, the replace function isn't working.
>
> > Peter Tippettwww.ipowow.com

-- 
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