[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gfsd]Re: display-entry.py has an assumed precondition bug
From: |
Bradley M. Kuhn |
Subject: |
Re: [gfsd]Re: display-entry.py has an assumed precondition bug |
Date: |
Tue, 4 Jun 2002 08:59:48 -0400 |
User-agent: |
Mutt/1.3.28i |
Paul Fisher <address@hidden> wrote:
> On Mon, Jun 03, 2002 at 11:19:02PM -0400, Bradley M. Kuhn wrote:
> > display-entry.py assumes that the category_id number 1 is the very top
> > category.
>
> No such assumption exists. The top level category (root_node) is the
> category named 'index'.
>
> >From display-entry.py, in function handler:
>
> c.execute ("select id from category where name=%s", ('index',))
> root_node = c.fetchone ()[0]
>
> I suppose that could be changed to depend on the root node being null,
> but regardless, there's nothing in display-entry.py that hard codes
> the value of root_node to 1.
Ok. I changed my code again so that it loads the "All GNU Packages"
category first. Check out http://www.gnu.org/directory/ and see what's
going on. You'd better hurry, because it is broken. I sent that message
to try to spur you to test this out. ;)
As you can see on the page, it has some sort of assumption about the
layout of the data. Perhaps it isn't a simple as I stated, but it
exists. ;)
-- bkuhn
pgp6QxeJ_KHn4.pgp
Description: PGP signature