[web2py] web2py shell vs terminal shell

2013-04-05 Thread Michael Herman
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 the Google Groups "web2py-users" group. To unsubscribe

[web2py] web2py shell window problem

2012-10-20 Thread Jscriptor09
Hi I am trying to learn web2py using the online book. Page 45 provide instruction on how to use the interactive shell However, the coomands are not getting executed. For a minor line command >>>a=3 >>>print type(a) I get this web2py Shell (2, 1, 1, datetime.datetime(2012, 10, 15, 12, 44,

[web2py] web2py shell not executing db.define_table() but does record it in SQL log.

2012-02-10 Thread Bill Thayer
In summary, creating a person table from the web2py shell creates an entry in the SQL log but does not create the table. I'm using the images example webapp for working the examples in Chapter 26. I entered... >>> db.define_table('person', Field('n

Re: [web2py] web2py shell

2011-11-29 Thread chandrakant kumar
This solved the problem, actually i was trying to test the code before using it in app, kind of like dbshell in Rails. On Tue, Nov 29, 2011 at 6:49 PM, Ross Peoples wrote: > You typically have to use the web2py shell: > > python web2py.py -S appname -M > > If you are trying to use gluon libraries

Re: [web2py] web2py shell

2011-11-29 Thread Jim Steil
Here is what I use in my scripts to access DAL from a regular Python script using MySQL database: import sys sys.path.append('path_to_web2py') from gluon import DAL db = DAL('mysql://username:password@servername/databasename',folder='path_to_the_databases_folder_of_my_application', auto_import

Re: [web2py] web2py shell

2011-11-29 Thread Ross Peoples
You typically have to use the web2py shell: python web2py.py -S appname -M If you are trying to use gluon libraries by themselves in some other application (without using web2py at all), then you either need to put web2py on your PYTHONPATH or copy the needed libraries where you want to use th

Re: [web2py] web2py shell

2011-11-29 Thread Vinicius Assef
I think you must import DAL. Now it's decoupled from web2py. On Tue, Nov 29, 2011 at 7:28 AM, chandrakant kumar wrote: > how can i do from gluon.sql import *, in a normal python shell. >

[web2py] web2py shell

2011-11-29 Thread chandrakant kumar
how can i do from gluon.sql import *, in a normal python shell.

[web2py] web2py shell error?

2011-04-08 Thread puercoespin
web2py Shell Version 1.94.6 (2011-03-27 18:20:38) In [1] : stack=[2,3,4] In [2] : stack.append(5) In [3] : stack [2, 3, 4] In the python2.5 shell: ActivePython 2.5.5.7 (ActiveState Software Inc.) based on Python 2.5.5 (r255:77872, Jan 31 2010, 15:49:35) [MSC v.1310 32 bit (Intel)] on win32 Type

[web2py] web2py shell in emacs?

2010-01-12 Thread Johann Spies
Is there a way to tell emacs to use web2py's shell and environment for when in python mode? Regards Johann -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this gro