Re: [web2py] Re: Web2py and PyScripter debugging

2011-06-11 Thread anil manikyam
*i want to update last row in a table in web2py how?*


-- 
@n!l m@n!ky@m


[web2py] Re: Web2py and PyScripter debugging

2011-06-11 Thread Dmitriy
Here it is:

1. Download the latest web2py sources 
http://web2py.com/examples/default/download

2. Create the following 'web2py_no_threads.py' file at the web2py
directory:

### web2py_no_threads.py ###
from wsgiref.simple_server import make_server, demo_app
from gluon.main import wsgibase
httpd = make_server('', 8000, wsgibase)
print "Serving HTTP on port 8000..."
# Respond to requests until process is killed
httpd.serve_forever()
### end file ###

3. Download and install PyScripter 
http://code.google.com/p/pyscripter/downloads/list

4. Create new project in PyScripter.

5. Import all web2py or single application files to the project

6. Select Run->Python Engine->Remote in menu

7. Place somewhere in the sources break point (F5)

8. Open web2py_no_threads.py file

9. Start debugging the project (menu Run->Debug)

Sometimes PyScripter hangs on debug. Also you can't debug a modified
source code - you need to restart the debugging.
Despite these shortcomings, PyScripter is convenient tool for
debugging and editing web2py on Windows.


[web2py] Re: Web2py and PyScripter debugging

2011-06-08 Thread JorgeH
Now that you know, can you post a step by step tutorial ?

;)


[web2py] Re: Web2py and PyScripter debugging

2011-06-08 Thread Dmitriy
Thank you!
It works with a latest sources and after fixing the import line to
'from gluon.main import wsgibase'

On Jun 3, 5:18 pm, Massimo Di Pierro 
wrote:
> ### no_threads_web2py.py ###
> from wsgiref.simple_server import make_server, demo_app
> from gluon import wsgibase
> httpd = make_server('', 8000, wsgibase)
> print "Serving HTTP on port 8000..."
> # Respond to requests until process is killed
> httpd.serve_forever()
> ### end file ###
>
> On Jun 3, 12:07 am, Dmitriy  wrote:
>
>
>
>
>
>
>
> > Is there any way to executeweb2pyin one (main) thread?
> > If not, can it be added?
> > This can help to debugweb2pyinPyScripter.PyScripteris great IDE
> > for Windows, but currently support only single-threaddebugging. A '-n
> > 1' command line option doesn't help.
>
> > Thanks!


[web2py] Re: Web2py and PyScripter debugging

2011-06-03 Thread Massimo Di Pierro
### no_threads_web2py.py ###
from wsgiref.simple_server import make_server, demo_app
from gluon import wsgibase
httpd = make_server('', 8000, wsgibase)
print "Serving HTTP on port 8000..."
# Respond to requests until process is killed
httpd.serve_forever()
### end file ###


On Jun 3, 12:07 am, Dmitriy  wrote:
> Is there any way to execute web2py in one (main) thread?
> If not, can it be added?
> This can help to debug web2py in PyScripter. PyScripter is great IDE
> for Windows, but currently support only single-thread debugging. A '-n
> 1' command line option doesn't help.
>
> Thanks!