[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gfsd]Re: display-entry.py has an assumed precondition bug
From: |
Paul Fisher |
Subject: |
[gfsd]Re: display-entry.py has an assumed precondition bug |
Date: |
Mon, 3 Jun 2002 23:38:44 -0400 |
User-agent: |
Mutt/1.3.25i |
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.