[web2py] Re: Use bpython with web2py

2011-04-15 Thread Massimo Di Pierro
Thanks. Will apply it shortly. On Apr 15, 2011, at 9:36 AM, Arun K.Rajeevan wrote: In response to the events in which bpython isn't installed/crashed, my previous patch will revert back to ipython (if installed). The attached patch will revert straight into plain python shell, instead of ch

[web2py] Re: Use bpython with web2py

2011-04-15 Thread Arun K.Rajeevan
In response to the events in which bpython isn't installed/crashed, my previous patch will revert back to ipython (if installed). The attached patch will revert straight into plain python shell, instead of checking for ipython. Apply, if others think, that's appropriate Thanks, Arun 215,226c21

Re: [web2py] Re: Use bpython with web2py

2011-04-15 Thread Arun K.Rajeevan
I'm using 10.10, I can't see this problem happening. Is it that Ubuntu 11.04 beta, and some package may be unstable??? what's your bpython version? import bpython; print bpython.__version__ mine is 0.9.6.2

[web2py] Re: Use bpython with web2py

2011-04-15 Thread Arun K.Rajeevan
I do came to notice that why reverting back to ipython while bpython is not installed. It should be reverting back to plain python shell. Fix for is that is fairly simple. An else clause. I'll submit new patch. @niknok: Can you reproduce the crashes?

[web2py] Re: Use bpython with web2py

2011-04-14 Thread niknok
I'm running Ubuntu 10.04 and tried your code and it's working fine in my case. But, I do like to report that I occasionally see bpython crash and revert to ipython. In some cases, the code I was trying out were pure python code, not web2py code. On Apr 14, 11:14 am, Bruno Rocha wrote: > I found

Re: [web2py] Re: Use bpython with web2py

2011-04-13 Thread Bruno Rocha
I found an isssue running bpython on ubuntu 11.04 I tried this: $python web2py.py -S welcome -B web2py shell started in bpython (looks awesome \o/), now I entered this code: >>> db = DAL("sqlite:memory") >>>db.define_table("person", Field("name")) >>>db.tables ['person'] >>>db.person.insert(nam

Re: [web2py] Re: Use bpython with web2py

2011-04-12 Thread Albert Abril
OMG! My favourite python interpeter in my favourite (all-languages) framework. You are fantastic people. 2011/4/12 Arun K.Rajeevan > For those who don't use repo but web2py packages from download page, > here is conventional patch files from diff. use patch to apply them. > you have to apply pat

[web2py] Re: Use bpython with web2py

2011-04-12 Thread Arun K.Rajeevan
as simple as issuing "hg import " once inside web2py repo.

[web2py] Re: Use bpython with web2py

2011-04-11 Thread niknok
Nice! Now, how do I apply the patch? On Apr 12, 4:14 am, "Arun K.Rajeevan" wrote: > Hi All, > > BPythonhttp://bpython-interpreter.org/, is a lightweight  python console > with auto completion etc., > It's a wrapper around standard python console. > for debian based systems do, > > $> sudo apt-get

[web2py] Re: Use bpython with web2py

2011-04-11 Thread Massimo Di Pierro
Fantastic. I will try this asap. Meanwhile if other people try it please let me know. Once tested, I have no objection to include it. Massimo On Apr 11, 2011, at 3:14 PM, Arun K.Rajeevan wrote: > Hi All, > > BPython http://bpython-interpreter.org/ , is a lightweight python console > with aut

[web2py] Re: Use bpython with web2py

2011-04-11 Thread Arun K.Rajeevan
In case someone can't see attachment, here's the content of attachment - # HG changeset patch # User Arun K Ra