Thanks for the suggestion.

I ended up manually translating the web2py model definition statements
into GAE style statements. I suppose this happens somewhere in
web2py's DAL, but I didn't try to figure out where.

On Dec 14, 5:46 pm, Richard <[email protected]> wrote:
> and as you said, you will need the __init__.py files
>
> On Dec 15, 8:45 am, Richard <[email protected]> wrote:
>
>
>
> > try adding your application directory to sys.path
>
> > On Dec 15, 5:35 am, Dan <[email protected]> wrote:
>
> > > I need to do some bulk operations (eg delete) on data in the GAE
> > > datastore for a web2py application, and was trying to follow the
> > > example in the GAE docs 
> > > here:http://code.google.com/appengine/articles/remote_api.html
>
> > > I can get the console up and running using the suggested
> > > appengine_console.py code, but am struggling to think of the right
> > > command to load the web2py application's data model into the console
> > > session so that I can run queries and work with the data. For example,
> > > this didn't work:
>
> > > >>> import applications.init.models.db
> > > or
> > > >>> import models.db
>
> > > both result in this message:
> > > ImportError: No module named models.db
>
> > > What is the proper command? Do I need to create any __init__.py files
> > > to make it work? Do I need to import some web2py modules first (or
> > > instead)?
>
> > > thanks
> > > Dan

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to