I and trying this with sqllite and I get an error in default.py

    (post, comments, comment_form, comments_count) =
get_article_view_by_id(post_id)

too many values to unpack. In fact get_article_view_by_id returns
post.

Massimo


On Sep 11, 4:25 pm, mdmcginn <[email protected]> wrote:
> For what it's worth, posts are missing in InstantPress through GAE
> when running web2py from trunk. The 
> URLhttp://127.0.0.1:8080/instantpress/default/post/2010/08/13/what-is-we...
> orhttp://127.0.0.1:8000/instantpress/default/post/2010/08/13/what-is-we...
> 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
> tohttp://localhost:8000/_ah/admin/datastore?kind=posts
>
> On Sep 11, 9:21 am, mdipierro <[email protected]> wrote:
>
> > fixed in trunk.
>
> > On Sep 11, 3:58 am, ron_m <[email protected]> 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