Yes, Massimo already explained this in the past, and I've added this note
on http://web2py.com/books/default/chapter/29/03#Design (under the Shell
paragraph):

Be careful using the web based shell - because different shell requests
will be executed in different threads. This easily gives errors, especially
if you play with databases creation and connections. For activities like
these (i.e. if you need persistence) it's much better to use the python
command line.

Nico


2013/4/6 Massimo Di Pierro <massimo.dipie...@gmail.com>

> The admin shell has problems maintaining state. I do not consider it
> reliable. The terminal shell is rock solid. It is a normal pyhton shell.
>
>
> On Friday, 5 April 2013 16:48:50 UTC-5, Michael Herman wrote:
>
>> yes. so when working with DAL directly from the shell it's better to
>> work from the web2py shell in the terminal rather than the admin app
>> shell? any idea why?
>>
>> On Fri, Apr 5, 2013 at 2:43 PM, Anthony <abas...@gmail.com> wrote:
>> >
>> > By "built-in" shell, do you mean the one in the admin app? I think
>> there are sometimes problems with that (particularly with database
>> operations), so I tend to use the web2py shell in the terminal, which you
>> can start as follows from the web2py directory:
>> >
>> > python web2py.py -S yourapp/[optional controller] -M
>> >
>> > But you may fine the admin shell works just fine for you, in which
>> case, use it.
>> >
>> > Anthony
>> >
>> >
>> > On Friday, April 5, 2013 4:57:49 PM UTC-4, Michael Herman wrote:
>> >>
>> >> i remember reading somewhere that it's better to use the built-in
>> shell in web2py, but i can't find the article/post. anyone know (1) if it
>> is "better", and, (2)  if so, why?
>> >
>> > --
>> >
>> > ---
>> > You received this message because you are subscribed to a topic in the
>> Google Groups "web2py-users" group.
>> > To unsubscribe from this topic, visit https://groups.google.com/d/**
>> topic/web2py/XWMt1Pb_2wk/**unsubscribe?hl=en<https://groups.google.com/d/topic/web2py/XWMt1Pb_2wk/unsubscribe?hl=en>.
>>
>> > To unsubscribe from this group and all its topics, send an email to
>> web2py+un...@**googlegroups.com.
>> > For more options, visit 
>> > https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>.
>>
>> >
>> >
>>
>  --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to