The shell is extremely useful for playing around with small snippets
of code; and running tests.

However, I am having trouble getting it to work with web2py.

What's the trick to importing it?

My attempt:

>ls -1 # with irrelevant bits excluded for brevity
…
applications
…
gluon
…
routes.py
…
web2py.py
…

>cd applications
>git clone https://github.com/joaoqalves/web2py-oauth2.git
>cd web2py-oauth2\controllers
>python
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from gluon.dal import DAL, Field
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named gluon.dal

-----

Note that I am working on a fork of 'web2py-oauth2' that will use the
web2py DAL which is a very useful abstraction + works with more than
just mongo (as you all know!).

How do I import gluon in the shell?

Thanks for all suggestions,

Alec Taylor

-- 



Reply via email to