+1 BPython kicks some seriouls python console!
BR,
Jason
On 04/08/2011 08:50 PM, Bruno Rocha wrote:
I Dont know if I am talking about the same thing.

When using web2py shell form console, if IPython is installed web2py shell runs in IPython interactive console.

I wqas wondering about change it to BPython by command line.

$python web2py.py -S appname -M
>>> IPython shell running


$python web2py.py -S appname -M -bpython
>>>BPython shell running (if installed)



On Fri, Apr 8, 2011 at 1:07 PM, Massimo Di Pierro <[email protected] <mailto:[email protected]>> wrote:

    talking about this?

    http://wiki.blender.org/index.php/Dev_talk:Source/BPython/API/bpy_api

    It should be easy..
    open the shell and type:

    from gluon.globals import Request, Response, Session
    from gluon.compileapp import build_environment(
    request=Request()
    response=Response()
    session=Session()
    request.application = '....'
    globals().update(build_environment(request,response,session))



    On Apr 8, 10:37 am, Bruno Rocha <[email protected]
    <mailto:[email protected]>> wrote:
    > No idea?
    > Em 07/04/2011 11:13, "Bruno Rocha" <[email protected]
    <mailto:[email protected]>> escreveu:
    >
    >
    >
    >
    >
    >
    >
    > > hi,
    >
    > > does anybody knows how to run the web2py shell using BPython
    instead of
    > > IPython?
    >
    > > I saw a line in gluon/shell.py but I did not find argument to
    pass in
    > > console.
    >
    > > Would be great a way to run:
    >
    > > $python web2py.py - S appname -M -bpython
    >
    > > Is it possible or even changing in code?
    >
    > > Thanks
    > > --
    > > Bruno Rocha
    > > [ About me:http://zerp.ly/rochacbruno]



Reply via email to