For what it's worth, posts are missing in InstantPress through GAE
when running web2py from trunk. The URL
http://127.0.0.1:8080/instantpress/default/post/2010/08/13/what-is-web2pytm
or http://127.0.0.1:8000/instantpress/default/post/2010/08/13/what-is-web2pytm
works if I'm running web2py directly, but not using web2py on GAE
dev_appserver. InstantPress does function, but gives the message "That
article doesnt exist". Yet the posts exist in the datastore, according
to http://localhost:8000/_ah/admin/datastore?kind=posts

On Sep 11, 9:21 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
> fixed in trunk.
>
> On Sep 11, 3:58 am, ron_m <ron.mco...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Put this patch into sql.py and it now works with the base 
> > URLhttp://127.0.0.1:8000/
>
> > $ diff ~/tools/web2py/web2py_hg/gluon/sql.py sql.py
> > 805c805,808
> > <         instances = thread.instances
> > ---
>
> > >         try:
> > >             instances = thread.instances
> > >         except AttributeError, e:
> > >             return
>
> > Just adds protection from the case where the thread has never had any
> > database instances open.
>
> > The remaining question is why did main.py function wsgibase() fall
> > into exception handling right away unless this is normal for the first
> > URL opened. I get no exceptions in the running terminal at this point
> > and no tickets under applications/admin/errors like before.
>
> > Ron

Reply via email to