hello,

After a few weeks of too busy with other things,
I'm trying to pick up web2py again,
so I uploaded the latest stable ? version
(version 1.86.3 crashed)

Version 1.86.2 (2010-10-04 03:13:15)

which contains a lot of standard examples,
which runs form the browser,
but crashes from an IDE.

Now the error message I get is "Invalid function",
which doesn't tell me anything.


So why not replace around line 400 in compileapp.py
            raise HTTP(400,
                       rewrite.thread.routes.error_message % 'invalid function' 
,
                       web2py_error='invalid function ')

with
            raise HTTP(400,
                       rewrite.thread.routes.error_message % 'invalid function' 
+filename+'- '+function,
                       web2py_error='invalid function ')

And is it allowed to add an extra print statement, which can easily detected in 
the IDE, like this
            print 'ERROR:  Invalid Function '+ filename + '  : ' + function
            raise HTTP(400,
                       rewrite.thread.routes.error_message % 'invalid function' 
+filename+' :
'+function,
                       web2py_error='invalid function ')

(if the print statement is allowed, where does it go when not running a local 
server ?)

And if the above is a security issue,
is there a way to detect if running from a local host or https or being logged 
in as an administrator,
so the detail will only be shown in these limited cases ?

thanks,
Stef Mientki

Reply via email to