On 24 Nov, 12:42, TheBoff <[EMAIL PROTECTED]> wrote:
> Try replacing print >> web.debug, traceback.format_exc() with
> print >> web.debug, str(traceback.format_exc())
>
> It might provide a better traceback at least: I'm not sure what you
> mean by @50% : a paste bin of your code and how to reproduce the error
> might be more useful.
>
SOLVED! The problem was in this part of code:
class myclass:
def GET(self, tags = ""):
input = web.input(p = 1)
mytxt = mysearch().search(tags, myutils.intget(input.p, 1))
web.header("Content-Type", "text/html; charset=utf-8")
return mytxt
mysearch().search(....) must have a string as first argument. I
noticed that 'tags' was not a string. If I replace
mytxt = mysearch().search(tags, myutils.intget(input.p, 1))
WITH:
mytxt = mysearch().search(str(tags), myutils.intget(input.p, 1))
everything is OK. Why :) ?
ps app.internalerror = web.debugerror doesn't work for me
bye
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---